• RELEVANCY SCORE 4.13

    DB:4.13:Unable To Create Soapfactory z7





    I am working with weblogic workshop and want to add a soap element to the soap message using soap handlers but when i try using any of the factory class such as SOAPFactory and run the service i get following error:

    Unable to create SOAPFactory:provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found

    for code
    SOAPFactory factory=SOAPFactory.newInstance();

    DB:4.13:Unable To Create Soapfactory z7

    hello,
    try to set this flag :
    -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl

    in your start script.

    regards,
    makiey

  • RELEVANCY SCORE 4.00

    DB:4.00:Unable To Create Message Factory For Soap: Provider Com.Sun.Xml.Messaging.. 83





    when the program runs to :

    MessageFactory mf = MessageFactory.newInstance();

    the jbuilder tells me as following:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.soap.MessageFactoryImpl not found

    what does it mean? do i need download the package com.sun.xml?if i need,where can i find it?
    thank you!

    DB:4.00:Unable To Create Message Factory For Soap: Provider Com.Sun.Xml.Messaging.. 83

    There are two system properties that need to be set. this property can be provided using -D option or with the System.setProperty.

    one property to be set is

    -Djavax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl
    System.setProperty("javax.xml.rpc.ServiceFactory","com.sun.xml.rpc.client.ServiceFactoryImpl");

    and the next one is

    -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap
    System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap");

    either the first one or the second one has to be set.

    the values provided is for the JAXM implementation of JWSDP1.2. for Weblogic the property values would be different.

  • RELEVANCY SCORE 3.77

    DB:3.77:A Serious Error Has Occured While Assembling The Soap Fault 9m






    I'm new to JBOSS but I can configure juddi on previos versions of JBOSS with MySQL and its working fine,but when I try on JBOSS 4.2.0GA I get an error code 500 while publishing or making some inquiry while jUDDI is happy.Error log is like"ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImplERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault."Could anyone please tell me where am I doing wrong.

    DB:3.77:A Serious Error Has Occured While Assembling The Soap Fault 9m


    I'm new to JBOSS but I can configure juddi on previos versions of JBOSS with MySQL and its working fine,but when I try on JBOSS 4.2.0GA I get an error code 500 while publishing or making some inquiry while jUDDI is happy.Error log is like"ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImplERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault."Could anyone please tell me where am I doing wrong.

  • RELEVANCY SCORE 3.68

    DB:3.68:How To Post A Soap Request jc



    Hi,

    I have created a Webservice model using WebDynpro to which I need to pass a SOAP request.

    Can anybody tell me how to pass a SOAP object to my WS model as a request over the SOAP connection.

    SOAPConnectionFactory soapConnectionFactory =

    SOAPConnectionFactory.newInstance();

    SOAPConnection connection =

    soapConnectionFactory.createConnection() SOAPFactory soapFactory =

    SOAPFactory.newInstance();

    MessageFactory factory =

    MessageFactory.newInstance();

    SOAPMessage message = factory.createMessage();

    I guess the above code would create the SOAP message for me...

    Can someone please help me out?

    - Ashwini.

    DB:3.68:How To Post A Soap Request jc


    Hi,

    I have created a Webservice model using WebDynpro to which I need to pass a SOAP request.

    Can anybody tell me how to pass a SOAP object to my WS model as a request over the SOAP connection.

    SOAPConnectionFactory soapConnectionFactory =

    SOAPConnectionFactory.newInstance();

    SOAPConnection connection =

    soapConnectionFactory.createConnection() SOAPFactory soapFactory =

    SOAPFactory.newInstance();

    MessageFactory factory =

    MessageFactory.newInstance();

    SOAPMessage message = factory.createMessage();

    I guess the above code would create the SOAP message for me...

    Can someone please help me out?

    - Ashwini.

  • RELEVANCY SCORE 3.66

    DB:3.66:Web Service Soap Header a7


    I am using JDevleoper 11.1.2.0 to create a Web Service Client from a WSDL that requires me to set values in the SOAP Header.

    JDeveloper creates a RequestHeader.java class for the SOAP Header values. How do I use this class? How to I properly instantiate an object and attach the object to the SOAP Message?

    DB:3.66:Web Service Soap Header a7

    Hi All,

    I see several entries on how to add Custom Soap Headers. If the header is defined and required in the WSDL the client proxy classes are created with a RequestHeader class. Usually, you create one of these classes and attach it to the soap message. You don't have to create SOAP elements from scratch.

    The JDeveloper/Weblogic implementation creates a RequestHeaderType class. Does anyone know how to use it?

  • RELEVANCY SCORE 3.64

    DB:3.64:Unable To Call Soap Server: (-2147467259) Unspecified Error sk





    I got this error when I try to create a domain:

    Unable to call SOAP server: (-2147467259) Unspecified error

    Not very clear.....

    Domains is created and works fine.

    Any ideas?

    DB:3.64:Unable To Call Soap Server: (-2147467259) Unspecified Error sk




    Hello,

    I am using Smartermail with the Plesk control panel and facing the same issue. I have not created Smartermail website through IIS. Please assist me.

  • RELEVANCY SCORE 3.53

    DB:3.53:Saaj Response Message - Namespace_Err When Accessing Soap Envelope kk


    I'm using SAAJ 1.2 (from jwsdp-1.3) and JDK 1.4.2_03.

    I've written a client application that uses the SAAJ api to send a SOAP message to a servlet. The servlet successfully receives the message and returns a SOAP response containing a single element in the SOAP body. The client receives the response and writes its content to standard out via the SOAPMessage.writeTo() method. The response received looks correct:

    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Body
    eai:Response xmlns:eai="urn:nz:govt:eai"SUCCESS/eai:Response
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope

    ... but when I try to access the soap envelope as follows:

    SOAPMessage response = connection.call(message, endpoint);
    response.writeTo(System.out);
    SOAPPart part = response.getSOAPPart();
    SOAPEnvelope env = part.getEnvelope();

    The last line in the above code fragment throws the following exception (see below). Does anyone know whats causing this? Please help.

    Thanks in advance ...
    Steve

    SEVERE: SAAJ0511: Unable to create envelope from given source
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:71)
    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:34)
    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:82)
    at test.SendDogLicense.main(SendDogLicense.java:124)
    Caused by: javax.xml.transform.TransformerException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:511)
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:63)
    ... 3 more
    Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:354)
    at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
    at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:494)
    ... 4 more

    DB:3.53:Saaj Response Message - Namespace_Err When Accessing Soap Envelope kk

    did you ever get an answer to this? i'm experiencing the same error

  • RELEVANCY SCORE 3.48

    DB:3.48:Basic Jaxm Example sz


    Hello ppl,

    My example contains a JAXMService and a JAXMClient. The classes are stg like -
    JAXMClient
    =========
    import java.io.*;

    import java.util.Iterator;
    import java.net.URL;

    import javax.activation.DataHandler;
    import javax.xml.soap.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;

    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.NodeList;

    /**
    * Sample JAXM Client.
    */
    public class JAXMClient{

    /**
    * URI for the server part
    */
    static final String theURI = "http://localhost:8080/service" ;

    public static void main(String args[]) {

    try {
    URL endpoint=new URL(theURI);

    //Create SOAP connection
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();

    // Create a message from the message factory.
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage msg = mf.createMessage();

    // Get the SOAP Part from the message
    SOAPPart soapPart=msg.getSOAPPart();

    // Get the SOAP Envelope from the SOAP Part
    SOAPEnvelope envelope = soapPart.getEnvelope();

    // Remove empty header from the Envelope
    envelope.getHeader().detachNode();

    // Create a soap body from the Envelope.
    SOAPBody body = envelope.getBody();

    // Add Items to the Order body
    addItem(body, envelope, "101", "Java", "$29.99");
    addItem(body, envelope, "102", "Java 2", "$39.99");
    addItem(body, envelope, "103", "JAXM", "$19.99");
    addItem(body, envelope, "104", "Web Services", "$49.99");

    // Print the message to the standard output
    System.out.println("\nContent of the message: \n");
    msg.writeTo(System.out);

    // Send the SOAP message and get reply
    System.err.println("Sending message to URL: "+ endpoint);
    SOAPMessage reply = connection.call(msg, endpoint);

    // Print the reply message to the standard output
    System.out.println("\n\nContent of the reply message: \n");
    reply.writeTo(System.out);

    //Parse the reply message to get the value of Attribute "TOTAL"
    SOAPPart part = reply.getSOAPPart( );
    envelope = part.getEnvelope();
    body = envelope.getBody();
    Iterator items = body.getChildElements(envelope.createName("Order"));

    SOAPBodyElement element = null;

    element = (SOAPBodyElement)items.next();
    Name name = envelope.createName("ITEMS");
    String numberOfItems = element.getAttributeValue(name);

    name = envelope.createName("TOTAL");
    String total = element.getAttributeValue(name);

    //Print the number of Items and Total Price
    System.out.println("\n\nOrder accepted.\nItems in the processed Order: " + numberOfItems + "\n Total: " + total);

    connection.close();

    } catch(Throwable e) {
    e.printStackTrace();
    }
    }

    /**
    * Add Item to the SOAP Body
    * @param body - SOAP Body
    * @param envelope - SOAP Envelope
    * @param id - Item ID
    * @param name - Item Name
    * @param price - Item Price
    */
    static void addItem(SOAPBody body, SOAPEnvelope envelope, String id, String name, String price){
    try{

    // Add a SOAP body element to the soap body
    SOAPBodyElement item = body.addBodyElement(envelope.createName("Item"));

    // Add a SOAP Attribute to the Item - Element
    item.addAttribute(envelope.createName("ID"),id);
    item.addAttribute(envelope.createName("NAME"),name);
    item.addAttribute(envelope.createName("PRICE"),price);

    } catch(Throwable e) {
    e.printStackTrace();
    }
    }
    }

    JAXMService
    ==========
    import java.text.NumberFormat;
    import java.util.Iterator;

    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;

    import javax.xml.soap.Name;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.messaging.JAXMServlet;
    import javax.xml.messaging.ReqRespListener;

    /**
    * Servlet that receives an Order message and returns Total and Number of Items
    */

    public class JAXMService
    extends JAXMServlet
    implements ReqRespListener
    {
    static MessageFactory fac = null;

    // Create a MessageFactory
    static {
    try {
    fac = MessageFactory.newInstance();
    } catch (Exception ex) {
    ex.printStackTrace();
    }
    };

    // This is the application code for handling the message. Once the
    // message is received the application can retrieve the soap part, the
    // attachment part if there are any, or any other information from the
    // message.

    /**
    * Web Service that accepts an Order as a JAXM message, parses it and sends a reply
    * message with the total price and number of items in the Order.
    */

    public SOAPMessage onMessage(SOAPMessage message) {
    System.out.println("On message called in receiving servlet");
    float price = 0;
    try {
    System.out.println("Here's the message: ");
    message.writeTo(System.out);

    //Get the soap part of the message (ignore attachments)
    SOAPPart part = message.getSOAPPart( );
    // Get the SOAP Envelope from the SOAP Part
    SOAPEnvelope envelope = part.getEnvelope();
    // Get a soap body from the envelope.
    SOAPBody body = envelope.getBody();
    // Get all Items for this Order
    Iterator items = body.getChildElements(envelope.createName("Item"));

    SOAPBodyElement element = null;
    int counter = 0;
    while (items.hasNext()) {
    float floatValue = 0;

    // Get an Item Element
    element = (SOAPBodyElement)items.next();
    Name name = envelope.createName("PRICE");

    // Get a Price value for this Item
    String sPrice = element.getAttributeValue(name);

    try{
    floatValue = NumberFormat.getCurrencyInstance().parse(sPrice).floatValue();
    } catch(java.text.ParseException e) {
    System.out.println("Can't parse the PRICE element - " + e);
    }
    counter++;
    price += floatValue;
    }

    // Create the reply message

    SOAPMessage msg = fac.createMessage();
    // Get the SOAP Envelope from the SOAP Part
    envelope = msg.getSOAPPart().getEnvelope();
    // Get a soap body from the envelope.
    body = envelope.getBody();
    // Remove empty header from the Envelope
    envelope.getHeader().detachNode();
    // Add the Order as Body Element
    SOAPBodyElement item = body.addBodyElement(envelope.createName("Order"));
    // Add a SOAP Attribute with name "ITEMS" and value of number of Items in the Order
    item.addAttribute(envelope.createName("ITEMS"),String.valueOf(counter));
    // Add a SOAP Attribute with name "TOTAL" and value of the price
    item.addAttribute(envelope.createName("TOTAL"),NumberFormat.getCurrencyInstance().format(price));
    System.out.println("Order Total: " + price);

    // Return a reply message back to the JAXM client
    return msg;

    } catch(Exception e) {
    System.out.println("Error in processing or replying to a message - e: " + e);
    return null;
    }
    }
    }
    web.xml
    ======
    ?xml version="1.0" encoding="ISO-8859-1"?

    !DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd"
    web-app
    servlet
    servlet-name
    jaxmservlet
    /servlet-name
    servlet-class
    JAXMService
    /servlet-class
    load-on-startup
    3
    /load-on-startup
    /servlet

    servlet-mapping
    servlet-name
    jaxmservlet
    /servlet-name
    url-pattern
    /service
    /url-pattern
    /servlet-mapping
    /web-app
    How do i run this stuff ?
    1] I started TOMCAT5.0 at localhost 8080
    2] created a directory called service in webapps
    3] created another direcotry WEB-INF and a file web.xml in webapps
    4] created another directory called classes in WEB-INF and placed JAXMService.class in it.
    5] I am able to compile it but am not able to run it as it gives me a bulk of errors when i try to start JAXMClient which are as follows -

    Content of the message:

    ?xml version="1.0" encoding="UTF-8"?
    soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"soap-env:BodyItem ID="101" NAME="Java" PRICE="$29.99"/Item ID="102" NAME="Java 2" PRICE="$39.99"/Item ID="103" NAME="JAXM" PRICE="
    ices" PRICE="$49.99"//soap-env:Body/soap-env:EnvelopeSending message to URL: http://localhost:8080/service
    javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:91)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:333)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:142)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:115)
    at JAXMClient.main(JAXMClient.java:100)
    javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:135)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:333)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:142)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:115)
    at JAXMClient.main(JAXMClient.java:100)
    Caused by: javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:91)
    ... 6 more
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:115)
    at JAXMClient.main(JAXMClient.java:100)
    Caused by: javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:135)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:333)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:142)
    ... 3 more
    Caused by: javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:91)
    ... 6 more
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
    at JAXMClient.main(JAXMClient.java:100)
    Caused by: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:115)
    ... 1 more
    Caused by: javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:135)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:333)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:142)
    ... 3 more
    Caused by: javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:91)
    ... 6 more
    =======================

    can some one help me track the problem ?
    can someone suggest an alternate example which i can start off with ?

    DB:3.48:Basic Jaxm Example sz

    Hello,
    i want to run the Example JAXM, i don't know how set the jaxm file in the example.
    How install JAXMService and JAXMClient???
    tanks for your advance.

  • RELEVANCY SCORE 3.48

    DB:3.48:Getting Bad Response Frm Web Service. Wats Wrong?? px


    Hi,

    I get a bad response frm a web serivice I'm trying to consume. This is the SOAP request msg I need to generate:

    POST /CurrencyConvertor.asmx HTTP/1.1
    Host: www.webservicex.net
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://www.webserviceX.NET/ConversionRate"
    ?xml version="1.0" encoding="utf-8"?
    soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    soap:Body
    ConversionRate xmlns="http://www.webserviceX.NET/"
    FromCurrencyUSD/FromCurrency
    ToCurrencyQRR/ToCurrency
    /ConversionRate
    /soap:Body
    /soap:EnvelopeThis is my code:
    // Create connection and message factory
    SOAPConnectionFactory soapConnectionFactory =
    SOAPConnectionFactory.newInstance();
    SOAPConnection connection =
    soapConnectionFactory.createConnection();
    MessageFactory messageFactory =
    MessageFactory.newInstance();

    // Create a message
    SOAPMessage message =
    messageFactory.createMessage();

    // Get the SOAP header and body from the message
    // and remove the header
    SOAPHeader header = message.getSOAPHeader();
    SOAPBody body = message.getSOAPBody();
    header.detachNode();

    // Create a SOAP factory
    // Create a UDDI v2 find_business body element
    SOAPFactory soapFactory =
    SOAPFactory.newInstance();
    SOAPBodyElement findBusiness =
    body.addBodyElement(soapFactory.createName(
    "ConversionRate", "",
    "http://www.webserviceX.NET/"));

    SOAPElement from =
    findBusiness.addChildElement(
    soapFactory.createName("FromCurrency") );
    from.addTextNode("USD");

    SOAPElement to =
    findBusiness.addChildElement(
    soapFactory.createName("ToCurrency") );
    to.addTextNode("BDT");

    message.saveChanges();I get this response :
    ?xml version="1.0" encoding="utf-8"?
    soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    soap:Body
    soap:Fault
    faultcodesoap:Client/faultcode
    faultstringSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean abortProcessing)/faultstring
    detail /
    /soap:Fault
    /soap:Body
    /soap:EnvelopeCan sum1 tell me wats wrong?? Im really new to this :D

    Any sorta help wud b gr8ly appreciated.

    DB:3.48:Getting Bad Response Frm Web Service. Wats Wrong?? px

    Hi,

    I get a bad response frm a web serivice I'm trying to consume. This is the SOAP request msg I need to generate:

    POST /CurrencyConvertor.asmx HTTP/1.1
    Host: www.webservicex.net
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://www.webserviceX.NET/ConversionRate"
    ?xml version="1.0" encoding="utf-8"?
    soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    soap:Body
    ConversionRate xmlns="http://www.webserviceX.NET/"
    FromCurrencyUSD/FromCurrency
    ToCurrencyQRR/ToCurrency
    /ConversionRate
    /soap:Body
    /soap:EnvelopeThis is my code:
    // Create connection and message factory
    SOAPConnectionFactory soapConnectionFactory =
    SOAPConnectionFactory.newInstance();
    SOAPConnection connection =
    soapConnectionFactory.createConnection();
    MessageFactory messageFactory =
    MessageFactory.newInstance();

    // Create a message
    SOAPMessage message =
    messageFactory.createMessage();

    // Get the SOAP header and body from the message
    // and remove the header
    SOAPHeader header = message.getSOAPHeader();
    SOAPBody body = message.getSOAPBody();
    header.detachNode();

    // Create a SOAP factory
    // Create a UDDI v2 find_business body element
    SOAPFactory soapFactory =
    SOAPFactory.newInstance();
    SOAPBodyElement findBusiness =
    body.addBodyElement(soapFactory.createName(
    "ConversionRate", "",
    "http://www.webserviceX.NET/"));

    SOAPElement from =
    findBusiness.addChildElement(
    soapFactory.createName("FromCurrency") );
    from.addTextNode("USD");

    SOAPElement to =
    findBusiness.addChildElement(
    soapFactory.createName("ToCurrency") );
    to.addTextNode("BDT");

    message.saveChanges();I get this response :
    ?xml version="1.0" encoding="utf-8"?
    soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    soap:Body
    soap:Fault
    faultcodesoap:Client/faultcode
    faultstringSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean abortProcessing)/faultstring
    detail /
    /soap:Fault
    /soap:Body
    /soap:EnvelopeCan sum1 tell me wats wrong?? Im really new to this :D

    Any sorta help wud b gr8ly appreciated.

  • RELEVANCY SCORE 3.44

    DB:3.44:[Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap ja


    I installde jwsdp1.5 and tomcat50-jwsdp, want to use the local registry server in jwsdp1.5 to publish and query services. the code can run successfully on other PC, but I can not run it successfully.
    when I run the JSP+Servlet to publish a service, the information is:

    javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
    at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
    at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    at Publish.doPost(Publish.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
    at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
    ... 32 more

    what can I do?? Help me please!!Thanks very very very much!

    DB:3.44:[Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap ja

    I installde jwsdp1.5 and tomcat50-jwsdp, want to use the local registry server in jwsdp1.5 to publish and query services. the code can run successfully on other PC, but I can not run it successfully.
    when I run the JSP+Servlet to publish a service, the information is:

    javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
    at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
    at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    at Publish.doPost(Publish.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
    at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
    ... 32 more

    what can I do?? Help me please!!Thanks very very very much!

  • RELEVANCY SCORE 3.39

    DB:3.39:Unable To Create Soap Connection From Jdeveloper 9i Release Candidate a8


    I could get the Soapservlet running at the URL http://oclnt109:7779/soap/servlet/soaprouter and this proves that its working.

    Now when I try to create the SOAPConnection from JDeveloper , I get this message.

    Testing connection...
    java.lang.Exception

    org.apache.soap.rpc.Response oracle.jdevimpl.webservices.util.JDevServiceManager.invokeMethod(java.lang.String, org.apache.soap.rpc.Parameter)

    java.lang.String[] oracle.jdevimpl.webservices.util.JDevServiceManager.list()

    void oracle.jdevimpl.webservices.wizard.connection.TestConnectionPanel$2.run()

    Unable to connect to myMachine Connection test failed: unable to (http://oclnt109:7779/soap/servlet/soaprouter) connect

    DB:3.39:Unable To Create Soap Connection From Jdeveloper 9i Release Candidate a8

    Hi,
    Can you pls. clarify? Where exactly do I make these changes?
    Daisy

  • RELEVANCY SCORE 3.39

    DB:3.39:Trying To Call Dfs Using Soap In Xmlspy 7f


    Hi all,just as test, I'm trying to make a simple request to DFS using SOAP. In XMLSpy there is a way of calling a SOAP webservice based on a given WSDL. This will create a request XML which you can then send to the webservice (DFS). The request xml that xmlspy generates based on the SearchService wsdl is:SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://query.core.datamodel.fs.documentum.emc.com/" xmlns:m1="http://core.datamodel.fs.documentum.emc.com/" xmlns:m2="http://properties.core.datamodel.fs.documentum.emc.com/"
    SOAP-ENV:Body
    m:execute xmlns:m="http://search.services.fs.documentum.emc.com/"
    query
    m0:repositoriesString/m0:repositories
    m0:transientIdString/m0:transientId
    /query
    execution queryId="" startingIndex="" maxResultCount="" maxResultPerSource="" cacheStrategyType="BASIC_FILE_CACHE_STRATEGY"/
    options
    m1:Properties isInternal="true"
    m2:Properties name="" isTransient="true"/
    /m1:Properties
    m1:Profiles/
    /options
    /m:execute
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope
    When I try to send this request to the server I get the following error message:?xml version="1.0"?
    S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
    S:Body
    ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"
    faultcodens2:Server/faultcode
    faultstringFailed to read a response: javax.xml.bind.UnmarshalException
    - with linked exception:
    [javax.xml.bind.UnmarshalException: Unable to create an instance of com.emc.documentum.fs.datamodel.core.query.Query
    - with linked exception:
    [java.lang.InstantiationException]]/faultstring
    /ns2:Fault
    /S:Body
    /S:Envelope
    Does anyone know what I'm doing wrong?Is there some way I need to authenticate? If so, how?Thanks for any help in advance!Kees.

    DB:3.39:Trying To Call Dfs Using Soap In Xmlspy 7f


    Hi
    please let me know how to generate http soap request envelope for custom DFS Service . the java client is code below for reference

    package

    com.sgpb.dfs.client;
    import

    service.au.com.windowlogic.documentum.client.ICreateFolderStructureService;

    import

    com.documentum.fc.common.DfLogger;import

    com.emc.documentum.fs.datamodel.core.context.RepositoryIdentity;import

    com.emc.documentum.fs.rt.context.ContextFactory;import

    com.emc.documentum.fs.rt.context.IServiceContext;import

    com.emc.documentum.fs.rt.context.ServiceFactory;public

    class TestClient{
    /**

    * This method is to test the DFS Service-creaFolderStructure by providing account number with type of account as input parameters */

    public void createFolderStructure(){
    DfLogger.info(
    this, "Create Folder Structure Service invocation Started", null, null);LoadInputParameters inputParams =
    new LoadInputParameters();//Instantiating the load input parameters classinputParams.initParams(
    "inputParams");//Loading properties file

    // Get and initialise a Context FactoryContextFactory contextFactory = ContextFactory.getInstance();
    IServiceContext context = contextFactory.newContext();

    // Set up a Repository IdentityRepositoryIdentity repoId =
    new RepositoryIdentity();repoId.setRepositoryName(inputParams.getRepository());
    repoId.setUserName(inputParams.getUserName());
    repoId.setPassword(inputParams.getPassword());

    // Set the login details in the Contextcontext.addIdentity(repoId);

    try{

    // Get a Service FactoryIServiceContext registeredContext = contextFactory.register(context, inputParams.getModuleName(), inputParams.getContextRootURI());
    ServiceFactory serviceFactory =
    new ServiceFactory();
    // Get the relevant ServiceICreateFolderStructureService service = serviceFactory.getRemoteService(ICreateFolderStructureService.
    class, registeredContext,inputParams.getModuleName(), inputParams.getContextRootURI());
    // Invoke service method and store return StringString servicemessage = service.createFolderStructure(inputParams.getRepository(),inputParams.getAccountNumber(),inputParams.getAccountType());

    // Print out the messageDfLogger.info(
    this, "Process Messgae : " + servicemessage, null, null);}

    catch (Exception e){
    DfLogger.error(
    this, "Error in Create Folder Structure Service invocation : " + e.getStackTrace(), null, null);e.printStackTrace();

    return;}
    DfLogger.info(
    this, "Create Folder Structure Service Sucessfuly executed", null, null);}

    public static void main(String[] args){

    new SGPBDFSServiceClients().createFolderStructure();
    }
    }

    Thanks
    UG

  • RELEVANCY SCORE 3.35

    DB:3.35:Jaxb, Soap And Attribute Namespaces x7


    I have been using JAXB successfully in a project for XML , but without namespaces. Now I am trying to create a schema from which I can generate JAXB class for a segment of a SOAP message. Specifically I want to generate some SOAP elements with mustUnderstand and actor attributes.
    The soap segment of XML which I want to be able to marshal and unmarshall with JAXB looks like this:

    ?xml version="1.0" encoding="UTF-8"?
    ROOT xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
    SYSTEM_ID soap-env:mustUnderstand="1" soap-env:actor="SYSTEM_ID"MUSE/SYSTEM_ID
    SUB_SYSTEM_ID soap-env:mustUnderstand="1" soap-env:actor="SUB_SYSTEM_ID"SERVER/SUB_SYSTEM_ID
    MESSAGE_ID soap-env:mustUnderstand="1" soap-env:actor="MESSAGE_ID"MU0003/MESSAGE_ID
    /ROOT

    I have tried many combinations of qualified/unqualified/target etc.etc.. namespace but am unable to create a schema which preserves the namespaced SOAP attributes after marshal and unmarshal operations.
    Can anyone assist me?
    Thanks.
    Anton

  • RELEVANCY SCORE 3.34

    DB:3.34:Mime Boundry 1k


    Sir,

    I have a simple Simple SOAP message and i need to add MIME header and boundry

    This is original message

    ?xml version="1.0" encoding="UTF-8"?
    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Body
    SOAP-ENV:Fault
    SOAP-ENV:faultcodeSOAP-ENV:Server/SOAP-ENV:faultcode
    SOAP-ENV:faultstringServer Error/SOAP-ENV:faultstring
    SOAP-ENV:detailTesting Description/SOAP-ENV:detail
    /SOAP-ENV:Fault
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope

    now i need to Change into

    ------=_Part_24_133322392.1122440091060
    Content-Type: text/xml; charset=utf-8
    ?xml version="1.0" encoding="UTF-8"?
    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Body
    SOAP-ENV:Fault
    SOAP-ENV:faultcodeSOAP-ENV:Server/SOAP-ENV:faultcode
    SOAP-ENV:faultstringServer Error/SOAP-ENV:faultstring
    SOAP-ENV:detailTesting Description/SOAP-ENV:detail
    /SOAP-ENV:Fault
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope
    ------=_Part_24_133322392.1122440091060--

    I checked with the API if i have attachments i am able to create MIME Headrs and MIME boundry, For simple SOAP message how to add MIME boundry and MIME header

    Thanks in Advance

    DB:3.34:Mime Boundry 1k

    I believe it's part of the content type header, but why are you doing that low level stuff yourself instead of just using a proper SOAP library to send your messages?

  • RELEVANCY SCORE 3.33

    DB:3.33:Security For Web Service Client fd


    How I can write the web service client? Clien must to encrypt SOAP-message and then create digest this SOAP-message. Help me...

    DB:3.33:Security For Web Service Client fd

    See SoapClient... I've used it successfully in the past.

  • RELEVANCY SCORE 3.33

    DB:3.33:Yet Another Issue, Jaxm 3c


    Lots of problems trying to get my head around this topic. I'm trying to deploy a JAXM Web service to tomcat as a web-app by extending JAXMServlet and implements ReqRespListener but I get the following error
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provide
    r com.sun.xml.messaging.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:116)I have axis and put jaxm.jar, saaj.jar and assj-imp.jar into TOMCAT_HOME/common/lib.
    I know that ther is a MessageFactoryImpl in saaj-impl.jar\com\sun\xml\messaging\saaj\soap but not in jaxxm.jar.
    If I was to deploy this as a JAXM web service and not a servlet do I need to go through the same procedure as JAX-RPC? By this I mean would it be best to run Java2WSDL and WSDL2Java tools?
    Thanks for all replys,
    James.

    DB:3.33:Yet Another Issue, Jaxm 3c

    Lots of problems trying to get my head around this topic. I'm trying to deploy a JAXM Web service to tomcat as a web-app by extending JAXMServlet and implements ReqRespListener but I get the following error
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provide
    r com.sun.xml.messaging.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:116)I have axis and put jaxm.jar, saaj.jar and assj-imp.jar into TOMCAT_HOME/common/lib.
    I know that ther is a MessageFactoryImpl in saaj-impl.jar\com\sun\xml\messaging\saaj\soap but not in jaxxm.jar.
    If I was to deploy this as a JAXM web service and not a servlet do I need to go through the same procedure as JAX-RPC? By this I mean would it be best to run Java2WSDL and WSDL2Java tools?
    Thanks for all replys,
    James.

  • RELEVANCY SCORE 3.32

    DB:3.32:Deploying Webservice (Jwsdp1.6) a8


    Hi,

    We developed a webservice in JWSDP1.6 toolkit and we deployed it in the Tomcat 4.1.27. it was working fine.
    When we tried deploying it in Weblogic 8.1 sp3
    First we got bClassCastException/b then we added weblogic.xml into the web-inf folder with the following value b prefer-web-inf-classestrue/prefer-web-inf-classes/b to the web services(war file) then we dint get the classcastexception.

    Now when i tried accessing that web service we got the following exception(stack trace)

    SEVERE: Couldn't create SOAP message factory due to exception: javax.xml.soap.SO
    APException: Unable to create message factory for SOAP: null
    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPExcept
    ion: Unable to create message factory for SOAP: null
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:203)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:150)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromR
    equest(JAXRPCServletDelegate.java:795)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:369)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: null
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:200)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:150)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromR
    equest(JAXRPCServletDelegate.java:795)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:369)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Feb 13, 2006 5:44:42 PM com.sun.xml.rpc.server.http.JAXRPCServletDelegate doPost

    SEVERE: caught throwable while recovering
    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPExcept
    ion: Unable to create message factory for SOAP: null
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:203)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:131)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:124)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeInternalServerEr
    rorResponse(SOAPMessageContext.java:161)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeSimpleErrorRespo
    nse(SOAPMessageContext.java:193)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:488)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: null
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:200)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:131)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:124)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeInternalServerEr
    rorResponse(SOAPMessageContext.java:161)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeSimpleErrorRespo
    nse(SOAPMessageContext.java:193)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:488)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    Thanks in advance.

    DB:3.32:Deploying Webservice (Jwsdp1.6) a8

    Hi,

    We developed a webservice in JWSDP1.6 toolkit and we deployed it in the Tomcat 4.1.27. it was working fine.
    When we tried deploying it in Weblogic 8.1 sp3
    First we got bClassCastException/b then we added weblogic.xml into the web-inf folder with the following value b prefer-web-inf-classestrue/prefer-web-inf-classes/b to the web services(war file) then we dint get the classcastexception.

    Now when i tried accessing that web service we got the following exception(stack trace)

    SEVERE: Couldn't create SOAP message factory due to exception: javax.xml.soap.SO
    APException: Unable to create message factory for SOAP: null
    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPExcept
    ion: Unable to create message factory for SOAP: null
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:203)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:150)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromR
    equest(JAXRPCServletDelegate.java:795)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:369)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: null
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:200)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:150)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromR
    equest(JAXRPCServletDelegate.java:795)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:369)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Feb 13, 2006 5:44:42 PM com.sun.xml.rpc.server.http.JAXRPCServletDelegate doPost

    SEVERE: caught throwable while recovering
    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPExcept
    ion: Unable to create message factory for SOAP: null
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:203)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:131)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:124)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeInternalServerEr
    rorResponse(SOAPMessageContext.java:161)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeSimpleErrorRespo
    nse(SOAPMessageContext.java:193)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:488)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: null
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOA
    PMessageContext.java:200)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:131)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
    sageContext.java:124)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeInternalServerEr
    rorResponse(SOAPMessageContext.java:161)
    at com.sun.xml.rpc.soap.message.SOAPMessageContext.writeSimpleErrorRespo
    nse(SOAPMessageContext.java:193)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle
    tDelegate.java:488)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:1
    02)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    Thanks in advance.

  • RELEVANCY SCORE 3.24

    DB:3.24:Ksoap2 Create Message pd


    Once created a message SOAP with KSOAP2 in J2ME
    How I make to obtain a string that it represents message SOAP?

    DB:3.24:Ksoap2 Create Message pd

    Once created a message SOAP with KSOAP2 in J2ME
    How I make to obtain a string that it represents message SOAP?

  • RELEVANCY SCORE 3.24

    DB:3.24:Soap Header Problem Saaj xz


    Hello,

    I am using SAAJ to send a SOAP message that needs to be exactly in a certain format. I have managed to get quite close yet there are a few things that I am unable to get working with SAAJ. Would be great if somebody on the forum can help out. I have simplified my real life example so that others could try out the code and hopefully come up with a solution.

    The SOAP message I need to send is in the form:

    SOAP:Envelope xmlns:SOAP="urn:schemas-xmlsoap-org:soap.v1"
    SOAP:Header
    Head1H1/Head1
    /SOAP:Header
    SOAP:Body
    Body1B1/Body1
    /SOAP:Body
    /SOAP:Envelope

    However I tried many things and the best I could do with SAAJ is:

    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Header
    DontWantThisPrefix:Head1 xmlns:DontWantThisPrefix="DontWantThis"
    H1
    /DontWantThisPrefix:Head1
    /SOAP-ENV:Header
    SOAP-ENV:Body
    Body1
    B1
    /Body1
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope

    So the things that change between expected and actual are:
    1) SOAP-ENV: The tag name is SOAP-ENV instead of SOAP
    2) SAAJ forces me to have a prefix and namespace to all header tags. So I could not create the expected tag within the SOAP header. I wish to get rid of DontWantThisPrefix and DontWantThis from the header tag Head1.

    The Java Code that generates the above output is as follows:

    import java.io.*;

    import javax.xml.soap.*;
    import javax.xml.transform.stream.*;

    public class SAAJTrial {

    public static void main(String[] args) throws Exception {
    SOAPConnection connection = SOAPConnectionFactory.newInstance()
    .createConnection();
    SOAPMessage message = MessageFactory.newInstance().createMessage();
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();

    SOAPHeader header = message.getSOAPHeader();

    SOAPHeaderElement headEle = header.addHeaderElement(envelope.createName(
    "Head1", "DontWantThisPrefix", "DontWantThis"));
    headEle.addTextNode("H1");

    SOAPBody body = envelope.getBody();

    SOAPElement postAdvert = body.addChildElement("Body1").addTextNode("B1");

    message.saveChanges();
    message.writeTo(System.out);
    connection.close();
    }
    }

    Is there any way by which I can send the expected SOAP message ???????
    Kindly get back asap.

    thanks,
    harshad

    DB:3.24:Soap Header Problem Saaj xz

    Again may I recommend one of the most wonderful tools on the internet that I have found so far.

    http://soapclient.com/soaptest.html

    you will need a WSDL document to use it, but it is well worth it.

    Have fun my friend.

  • RELEVANCY SCORE 3.23

    DB:3.23:Call.Addparameter() Method Generating Incorrect Soap Request 9p


    Hi,
    Im trying to call a webservice using dynamic client with no wsdl.

    public class No_Wsdl {

    public static void main(String[] args) throws Exception {

    // Setup the global JAX-RPC service factory
    System.setProperty( "javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");

    //SetUp verbose mode.
    System.setProperty("weblogic.webservice.verbose", "true");

    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();

    // define qnames
    String targetNamespace = "http://ws.invesbot.com/";
    QName serviceName = new QName(targetNamespace,"StockQuotes");
    QName portName = new QName(targetNamespace, "StockQuotesSoap");
    QName operationName = new QName(targetNamespace,"GetQuotes");

    // create service
    Service service = factory.createService(serviceName);

    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING );
    mapping.register( GetQuotes.class,new QName( "http://ws.invesbot.com/", "GetQuotes" ),
    new GetQuotesCodec(),new GetQuotesCodec());
    mapping.register(SOAPElement.class, new QName("http://ws.invesbot.com/", "GetQuotesResponse" ),
    new SOAPElementCodec(), new SOAPElementCodec());

    Call call = service.createCall(portName, operationName);

    //set port and operation name.
    call.setPortTypeName(portName);
    call.setOperationName(operationName);

    call.setProperty("javax.xml.rpc.soap.http.soapaction.use",new Boolean(true));
    call.setProperty("javax.xml.rpc.soap.http.soapaction.uri", "http://ws.invesbot.com/GetQuotes");

    call.addParameter("symbols",new QName("http://ws.invesbot.com/","GetQuotes"), GetQuotes.class,ParameterMode.IN);

    // set end point address
    call.setTargetEndpointAddress("http://ws.invesbot.com/stockquotes.asmx");

    GetQuotes quotes = new GetQuotes();
    quotes.setSymbols("BEAS");

    SOAPElement response = (SOAPElement) call.invoke(new Object[]{quotes} );

    System.out.println("The quote for BEAS is: ");
    System.out.println("RESPONSE:::"+response);
    }
    }
    However, im getting null in resonse variable as the request SOAP message created is incorrect.
    with verbose mode i checked the SOAP request message its:
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    m:GetQuotes xmlns:m="http://ws.invesbot.com/"
    symbols
    symbols xsi:type="xsd:string"BEAS/symbols
    /symbols
    /m:GetQuotes
    /env:Body
    /env:Envelope

    when i am sending request from a static client i am getting the correct response back and the SOAP request looks like:
    (note the extra symbols tag is not there)
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    m:GetQuotes xmlns:m="http://ws.invesbot.com/"
    symbols xsi:type="xsd:string"BEAS/symbols
    /m:GetQuotes
    /env:Body
    /env:Envelope

    why am i getting an extra symbols tag with dynamic client and how can in remove it?
    Please Help.
    its been more than 24hrs im scratching my head on this.
    please reply soon.

    DB:3.23:Call.Addparameter() Method Generating Incorrect Soap Request 9p

    Hi,
    Im trying to call a webservice using dynamic client with no wsdl.

    public class No_Wsdl {

    public static void main(String[] args) throws Exception {

    // Setup the global JAX-RPC service factory
    System.setProperty( "javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");

    //SetUp verbose mode.
    System.setProperty("weblogic.webservice.verbose", "true");

    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();

    // define qnames
    String targetNamespace = "http://ws.invesbot.com/";
    QName serviceName = new QName(targetNamespace,"StockQuotes");
    QName portName = new QName(targetNamespace, "StockQuotesSoap");
    QName operationName = new QName(targetNamespace,"GetQuotes");

    // create service
    Service service = factory.createService(serviceName);

    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING );
    mapping.register( GetQuotes.class,new QName( "http://ws.invesbot.com/", "GetQuotes" ),
    new GetQuotesCodec(),new GetQuotesCodec());
    mapping.register(SOAPElement.class, new QName("http://ws.invesbot.com/", "GetQuotesResponse" ),
    new SOAPElementCodec(), new SOAPElementCodec());

    Call call = service.createCall(portName, operationName);

    //set port and operation name.
    call.setPortTypeName(portName);
    call.setOperationName(operationName);

    call.setProperty("javax.xml.rpc.soap.http.soapaction.use",new Boolean(true));
    call.setProperty("javax.xml.rpc.soap.http.soapaction.uri", "http://ws.invesbot.com/GetQuotes");

    call.addParameter("symbols",new QName("http://ws.invesbot.com/","GetQuotes"), GetQuotes.class,ParameterMode.IN);

    // set end point address
    call.setTargetEndpointAddress("http://ws.invesbot.com/stockquotes.asmx");

    GetQuotes quotes = new GetQuotes();
    quotes.setSymbols("BEAS");

    SOAPElement response = (SOAPElement) call.invoke(new Object[]{quotes} );

    System.out.println("The quote for BEAS is: ");
    System.out.println("RESPONSE:::"+response);
    }
    }
    However, im getting null in resonse variable as the request SOAP message created is incorrect.
    with verbose mode i checked the SOAP request message its:
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    m:GetQuotes xmlns:m="http://ws.invesbot.com/"
    symbols
    symbols xsi:type="xsd:string"BEAS/symbols
    /symbols
    /m:GetQuotes
    /env:Body
    /env:Envelope

    when i am sending request from a static client i am getting the correct response back and the SOAP request looks like:
    (note the extra symbols tag is not there)
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    m:GetQuotes xmlns:m="http://ws.invesbot.com/"
    symbols xsi:type="xsd:string"BEAS/symbols
    /m:GetQuotes
    /env:Body
    /env:Envelope

    why am i getting an extra symbols tag with dynamic client and how can in remove it?
    Please Help.
    its been more than 24hrs im scratching my head on this.
    please reply soon.

  • RELEVANCY SCORE 3.20

    DB:3.20:Content Is Not Allowed In Prolog &Amp; Unable To Create Envelope From Given Src p3


    Hello,

    I have a method in my java appl which calls a web service with a soap message and the web service (jsp) sends another soap message as response to the calling method. When getSOAPBody() method is invoked on the SOAPMessage returned by the jsp, the following error occured:

    ERROR: 'Content is not allowed in prolog.'
    Mar 31, 2009 4:27:24 PM com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    Mar 31, 2009 4:27:24 PM FileStr.FileSystemSOAPInterface createFileStrFromSoapMsgPlease tell me how to overcome this. Thank you.

    DB:3.20:Content Is Not Allowed In Prolog &Amp; Unable To Create Envelope From Given Src p3

    Hello sir,

    I tried the same with using a servlet but the same result occurred, the problem still persists. At the client side, I am able to read the 'SOAPMessage without attachments' created and returned by the servlet/jsp, but in case of a 'SOAPMessage with attachments' created and returned by the very same servlet/jsp, the above said error is occuring. I think the client side java appl code is unable to treat that 'SOAPMessage with attachments' ( but clearly not a 'SOAPMessage without attachments' ), returned by the servlet/jsp, as a soap message because of some mistake I must be making at the servelt/jsp code which I am unable to figure out. Could this be due to something regarding content types. I am following sun's SAAJ tutorials and I didn't find much in that regarding this. Could you suggest me something else. (SOAP messages are of soap 1.2 protocol)

    Thankyou.

  • RELEVANCY SCORE 3.19

    DB:3.19:Osb - Couldn't Create Soap Message Due To Exception: Unable To Create Stax xf


    Hi,

    If I call 2 webservices via OSB 10Rg3 in quick succession I get the following fault on the second response :

    May 6, 2010 5:25:14 PM CEST Error ALSB Logging BEA-000000 [null, null, null, ERROR] soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
    nvelope/"/S:Body xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
    S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"
    faultcodeS:Client/faultcode
    faultstringCouldn't create SOAP message due to exception: Unable to create StAX reader or writer/faultstring
    /S:Fault
    /S:Bodycon:fault xmlns:con="http://www.bea.com/wli/sb/context"
    con:errorCodeBEA-380001/con:errorCode
    con:reasonInternal Server Error/con:reason
    con:location
    con:nodeRouteToTestService/con:node
    con:pathresponse-pipeline/con:path
    /con:location
    /con:fault

    Any ideas what could cause this? The provider web services are working fine... and there is no problem if there is a long time delay between calling the 2 web services.

    DB:3.19:Osb - Couldn't Create Soap Message Due To Exception: Unable To Create Stax xf

    It seems that one of the providers was mis-configured (the first service called) :

    HTTP Transport Configuration
    Follow HTTP redirects DISABLED
    Use Chunked Streaming Mode ENABLED

    when I enabled the HTTP redirect then the problem went away...

    HTTP Transport Configuration
    Follow HTTP redirects ENABLED
    Use Chunked Streaming Mode DISABLED

  • RELEVANCY SCORE 3.19

    DB:3.19:Issue With Bpel Soapclient Class fp



    Hi,I am getting exception when I use try to call using SOAPClient class.its throwing out this exception
    20:10:31,711 INFO [STDOUT] 20:10:31,695 ERROR [SoapClient] endpoint call failed: http://192.168.1.97:9090/EnterpriseProcessManager/HumanTask/1227690598183eb75d24b5596a1b2_-21bf5165_11dd78301e3_-7fff::Workflow1InvokeBatchMesh.wsdl
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.jbpm.bpel.integration.client.SoapClient.callImpl(SoapClient.java:134)
    at org.jbpm.bpel.integration.client.SoapClient.call(SoapClient.java:89)
    at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:182)

    DB:3.19:Issue With Bpel Soapclient Class fp


    I would hope that there was more to the stacktrace than what you have shown but, in any case, that is jBPM code and this forum is for JBoss ESB.

  • RELEVANCY SCORE 3.18

    DB:3.18:Set Call Reject Message In Galaxy S2 Gt-I9100 fx


    Hi,

    I am unable to create set call reject message from the settings. I create the message and saved. No error. But file is not created.

    I have tried factory reset also. Please help me to fix the issue.

    Android Version 4.0.4

    Regards
    Balamurugan P

    DB:3.18:Set Call Reject Message In Galaxy S2 Gt-I9100 fx

    Hi,

    This forum is intented only for developers.
    Please contact your local Samsung support i.e. for UShttp://www.samsung.com/us/support/contact

    Regards,
    Tomasz Rozbicki
    Samsung Developers
    This content has been quoted from balamuruga19@s thought. (Link to original post)
    Hi,

    I am unable to create set call reject message from the settings. I create the message and saved. No error. But file is not created.

    I have tried factory reset also. Please help me to fix the issue.

    Android Version 4.0.4

    Regards
    Balamurugan P

  • RELEVANCY SCORE 3.18

    DB:3.18:Bpel Problem sc


    hi,

    while i am running Composite applications in NetBeans IDE i am getting following erron .Any one can explain why i am getting this error.
    tell me the solution also.

    Thanks in advance

    error message="Unable to create message factory" type="com.sun.xml.messaging.saaj.SOAPExceptionImpl"com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create message factory
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:56)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.setUp(ConfiguredTest.java:153)
    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:53)
    ... 12 more

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:53)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.setUp(ConfiguredTest.java:153)
    /error
    /testcase
    system-out![CDATA[]]/system-out
    system-err![CDATA[Jan 10, 2007 12:15:33 AM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection init
    SEVERE: SAAJ0001: Unable to create Message Factory
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:53)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.setUp(ConfiguredTest.java:153)
    at junit.framework.TestCase.runBare(TestCase.java:125)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)
    ]]/system-err

    DB:3.18:Bpel Problem sc

    Thanks it worked
    searched for saaj-impl and downloaded.

    Edited by: phoneyNK on Nov 17, 2007 5:40 AM

  • RELEVANCY SCORE 3.17

    DB:3.17:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap: af


    Hi ,
    I am moving my application from Tomcat to Weblogic 10.0. The application is working fine on Tomcat but on weblogic 10.0 i am getting following error message.

    [[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.independenthealth.portalbeans.drugcopay - javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:119)
    at org.apache.ws.axis.security.util.AxisUtil.toSOAPMessage(AxisUtil.java:55)
    at com.sxc.webservice.common.SoapMessageBuilder.signMessage(SoapMessageBuilder.java:117)
    at com.sxc.webservice.common.AXISStub.callService(AXISStub.java:90)
    at com.sxc.webservice.drug.DrugAXISStub.callService(DrugAXISStub.java:52)
    at com.sxc.webservice.drug.DrugFinder.getMostCommonDrugs(DrugFinder.java:69)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getCommonDrugData(DrugCopayPortalBean.java:434)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getView(DrugCopayPortalBean.java:385)
    at com.epicentric.portalbeans.GenericPortalBean.createView(GenericPortalBean.java:309)

    I have put saaj.jar exlicitly in classpath. butstill error persist.

    Any help on this would be appreciated

    Regards

    DB:3.17:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap: af

    Hi ,
    I am moving my application from Tomcat to Weblogic 10.0. The application is working fine on Tomcat but on weblogic 10.0 i am getting following error message.

    [[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.independenthealth.portalbeans.drugcopay - javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:119)
    at org.apache.ws.axis.security.util.AxisUtil.toSOAPMessage(AxisUtil.java:55)
    at com.sxc.webservice.common.SoapMessageBuilder.signMessage(SoapMessageBuilder.java:117)
    at com.sxc.webservice.common.AXISStub.callService(AXISStub.java:90)
    at com.sxc.webservice.drug.DrugAXISStub.callService(DrugAXISStub.java:52)
    at com.sxc.webservice.drug.DrugFinder.getMostCommonDrugs(DrugFinder.java:69)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getCommonDrugData(DrugCopayPortalBean.java:434)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getView(DrugCopayPortalBean.java:385)
    at com.epicentric.portalbeans.GenericPortalBean.createView(GenericPortalBean.java:309)

    I have put saaj.jar exlicitly in classpath. butstill error persist.

    Any help on this would be appreciated

    Regards

  • RELEVANCY SCORE 3.16

    DB:3.16:Switchyard Bpmn - Switchyard035406: Unable To Create Soap Body Due To Null Message Content jf



    Hi team,

    I am newbie and very interesting switchyard. i want to work switchyard bpmn sample project with external soap web service. but following error :

    SWITCHYARD035406: Unable to create SOAP Body due to null message content

    My using tools : ecplise kepler sr2, jboss eap 6.1, switch yard 1.1

    I want to transfer process variable to web service. What shoud i do ?

    Regards

    Element

    DB:3.16:Switchyard Bpmn - Switchyard035406: Unable To Create Soap Body Due To Null Message Content jf


    I Solved own problem using transformer.

    @Transformer(from="java:com.example.switchyard.testbpm.Add", to = "java:org.w3c.dom.Node")public org.w3c.dom.Node transformToElement(com.example.switchyard.testbpm.Add obj) throws JAXBException { String xml = convertToXml(obj); System.out.println("obj=" + obj.getX()); System.out.println("XML=" + xml); return toElement(xml);

  • RELEVANCY SCORE 3.13

    DB:3.13:Soap Sender Message Query cc



    Hello All, My scenario is SOAP to Proxy In soap sender the payload is being sent as a flat file data. How can i map this ? In moni I can see that message transformation is something like Sender message payload from SOAP message : abc|123|20120102 Please let me know how can should i create target structure so that i can extract the values from the soap message. Thanks in advance. Regards, Hari

    DB:3.13:Soap Sender Message Query cc


    Hi Harsha,

    Use of Java mapping is an easier mechanism.

    You can split the data based on the delimiter (in your case | ) and then fill them into the respective proxy structure.

    May be not the best approach, but you can also split the string into individual values in ABAP proxy itself.

    Also look at the options using MessageTransformbean in the adapter.

    Cheers!

    Anish

  • RELEVANCY SCORE 3.11

    DB:3.11:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap: cm


    Hi,

    I am using JDeveloper 10.1.3.3. I have constructed a document-literal styled Web Service i my JDeveloper.

    I have these libraries in my JDeveloper Project Properties :-

    Oracle SOAP
    J2EE
    Commons Logging 1.0.3
    Commons Digester 1.5I keep getting this error when I try to start ( run ) my Web Service :-

    500 Internal Server Error

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: oracle.j2ee.ws.saaj.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:31)
    at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:101)
    at oracle.j2ee.ws.server.JAXRPCServlet.init(JAXRPCServlet.java:148)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)I am flummoxed as to what could cause this error. At this point, I am not sure where to start debugging in JDeveloper as c I have never encountered this error.

    Can you folks please offer insights into this problem ?

    Thanks,
    Sandeep

    DB:3.11:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap: cm

    Hi,

    I am using JDeveloper 10.1.3.3. I have constructed a document-literal styled Web Service i my JDeveloper.

    I have these libraries in my JDeveloper Project Properties :-

    Oracle SOAP
    J2EE
    Commons Logging 1.0.3
    Commons Digester 1.5I keep getting this error when I try to start ( run ) my Web Service :-

    500 Internal Server Error

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: oracle.j2ee.ws.saaj.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:31)
    at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:101)
    at oracle.j2ee.ws.server.JAXRPCServlet.init(JAXRPCServlet.java:148)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)I am flummoxed as to what could cause this error. At this point, I am not sure where to start debugging in JDeveloper as c I have never encountered this error.

    Can you folks please offer insights into this problem ?

    Thanks,
    Sandeep

  • RELEVANCY SCORE 3.11

    DB:3.11:Tbo Is Not Getting Triggered (Intermittent Issue) d1



    Kindly help.

    Errors in Catelina.out file

    ===================

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle

    SEVERE: Couldn't create SOAP message due to exception: Unable to createStAX reader or writer

    com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet

    SEVERE: caught throwable javax.xml.ws.WebServiceException: javax.xml.stream.XMLStreamException:ClientAbortException: java.net.SocketException: Connection reset

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle

    SEVERE: Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset com.sun.xml.ws.protocol.soap.MessageCreationException:Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handl

    SEVERE: Couldn't create SOAPmessage due to exception: org.jvnet.mimepull.MIMEParsingException:java.net.SocketException: Connection reset

    com.sun.xml.ws.protocol.soap.MessageCreationException:Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset

    DB:3.11:Tbo Is Not Getting Triggered (Intermittent Issue) d1


    Kindly help.

    Errors in Catelina.out file

    ===================

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle

    SEVERE: Couldn't create SOAP message due to exception: Unable to createStAX reader or writer

    com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet

    SEVERE: caught throwable javax.xml.ws.WebServiceException: javax.xml.stream.XMLStreamException:ClientAbortException: java.net.SocketException: Connection reset

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle

    SEVERE: Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset com.sun.xml.ws.protocol.soap.MessageCreationException:Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset

    com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handl

    SEVERE: Couldn't create SOAPmessage due to exception: org.jvnet.mimepull.MIMEParsingException:java.net.SocketException: Connection reset

    com.sun.xml.ws.protocol.soap.MessageCreationException:Couldn't create SOAP message due to exception:org.jvnet.mimepull.MIMEParsingException: java.net.SocketException: Connectionreset

  • RELEVANCY SCORE 3.10

    DB:3.10:Wssecurity Not Working 1j



    I have created web service that uses a POJO endpoint and have successfully connected to it from a servlet. Now I am trying to add WSSecurity to it, using signed certificates. When I run the client, it connects to the web service, but the message is not signed. I verify this by monitoring the soap message, which does not include any of the wsse tags.I am using:JBoss 4.0.4.GA with the default JBossWS installedJDK 1.5.0_07JWSDP 2.0Compiling the service using wstoolsCompiling the client using wscompileI Used OpenSSL to created the signed certificates/keystore/truststoreAfter reading both the JBossWS User Guide and the JAX-WS User Guide as well as many posts to this forum I used the following setup for the web serivice and client.Web Service: included jboss-wsse-server.xml, standard-jaxrpc-endpoint-config.xml, server.truststore and client.keystore in web-inf, along with normal deployment descriptors.jboss-wsse-server.xml:?xml version="1.0" encoding="UTF-8"?jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd" key-store-fileMETA-INF/client.keystore/key-store-file key-store-passwordwebservicec/key-store-password trust-store-fileMETA-INF/server.truststore/trust-store-file trust-store-passwordjbossws/trust-store-password/jboss-ws-securitystandard-jaxrpc-endpoint-config.xml:jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd" endpoint-config config-nameStandard WSSecurity Endpoint/config-name pre-handler-chains javaee:handler-chain javaee:protocol-bindings##SOAP11_HTTP/javaee:protocol-bindings javaee:handler javaee:handler-nameWSSecurity Handler/javaee:handler-name javaee:handler-classorg.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer/javaee:handler-class /javaee:handler /javaee:handler-chain /pre-handler-chains /endpoint-config/jaxws-configweb.xml:?xml version="1.0" encoding="UTF-8"?web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" .. servlet mappings ... context-param param-namejbossws-config-name/param-name param-valueStandard Secure Endpoint/param-value /context-param/web-appClient: Included jboss-wsse-client.xml, standard-jaxrpc-client-config.xml, and client.keystore in web-inf, as well as normal deployment descriptorts.jboss-wsse-client.xml:?xml version="1.0" encoding="UTF-8"?jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd" key-store-fileMETA-INF/client.keystore/key-store-file key-store-passwordjbossws/key-store-password/jboss-ws-securitystandard-jaxrpc-client-config.xml:jaxrpc-config xmlns="urn:jboss:jaxrpc-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xsi:schemaLocation="urn:jboss:jaxrpc-config:2.0 jaxrpc-config_2_0.xsd" client-config config-nameStandard WSSecurity Client/config-name post-handler-chain handler-chain-nameWSSecurity Handlers/handler-chain-name j2ee:handler-nameWSSecurityHandlerOutbound/j2ee:handler-name j2ee:handler-classorg.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound/j2ee:handler-class /post-handler-chain /client-config/jaxrpc-configI also included several libs from libraries from the JAXRPC and SAAJ libs in the JWSDP. I did not add any special code to web.wml.Both the web service and client deploy without error, and when I run the service is runs without error. But when I look at the SOAP message that was sent it is not signed.Next I tried upgrading to JBossWS 1.2.1. With this configuration both web the service and client install correctly, but when I run the code I get this error:19:54:23,064 WARN [[WebClient]] Servlet.service() for servlet WebClient threw exceptionjava.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl; nested exception is: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unableto create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl at com.acxiom.mypkg.Purchaser_Stub.purchase(Purchaser_Stub.java:88) at com.acxiom.webclient.Client.doGet(Client.java:41) at com.acxiom.webclient.Client.doPost(Client.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)...Can somebody please help me to see what I am doing wrong?Thanks!

    DB:3.10:Wssecurity Not Working 1j


    Hi.I think you are missing config part in jboss-wsse-server.xml and jboss-wsse-client.xml.
    config
    sign type="x509v3" alias="xws-security-server" /
    requires
    signature/
    /requires
    /config

  • RELEVANCY SCORE 3.10

    DB:3.10:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap jx


    Hi all ,
    I am getting the below error when I deployed my application on Weblogic 10.0

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:119)
    at org.apache.ws.axis.security.util.AxisUtil.toSOAPMessage(AxisUtil.java:55)
    at com.sxc.webservice.common.SoapMessageBuilder.signMessage(SoapMessageBuilder.java:117)
    at com.sxc.webservice.common.AXISStub.callService(AXISStub.java:90)
    at com.sxc.webservice.drug.DrugAXISStub.callService(DrugAXISStub.java:52)
    at com.sxc.webservice.drug.DrugFinder.getMostCommonDrugs(DrugFinder.java:69)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getCommonDrugData(DrugCopayPortalBean.jav
    :434)

    The same application is working fine on tomcat server. I have tried to place saaj.jar in classpath, but still it gives same error.

    Any response on this would be appreciated.

    DB:3.10:Javax.Xml.Soap.Soapexception: Unable To Create Message Factory For Soap jx

    Hi all ,
    I am getting the below error when I deployed my application on Weblogic 10.0

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.apache.axis.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:119)
    at org.apache.ws.axis.security.util.AxisUtil.toSOAPMessage(AxisUtil.java:55)
    at com.sxc.webservice.common.SoapMessageBuilder.signMessage(SoapMessageBuilder.java:117)
    at com.sxc.webservice.common.AXISStub.callService(AXISStub.java:90)
    at com.sxc.webservice.drug.DrugAXISStub.callService(DrugAXISStub.java:52)
    at com.sxc.webservice.drug.DrugFinder.getMostCommonDrugs(DrugFinder.java:69)
    at com.independenthealth.portalbeans.drugcopay.DrugCopayPortalBean.getCommonDrugData(DrugCopayPortalBean.jav
    :434)

    The same application is working fine on tomcat server. I have tried to place saaj.jar in classpath, but still it gives same error.

    Any response on this would be appreciated.

  • RELEVANCY SCORE 3.09

    DB:3.09:Saaj Response Message - Namespace_Err When Accessing Soap Envelope x7


    I'm using SAAJ 1.2 (from jwsdp-1.3) and JDK 1.4.2_03.

    I've written a client application that uses the SAAJ api to send a SOAP message to a servlet. The servlet successfully receives the message and returns a SOAP response containing a single element in the SOAP body. The client receives the response and writes its content to standard out via the SOAPMessage.writeTo() method. The response received looks correct:

    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Body
    eai:Response xmlns:eai="urn:nz:govt:eai"SUCCESS/eai:Response
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope

    ... but when I try to access the soap envelope as follows:

    SOAPMessage response = connection.call(message, endpoint);
    response.writeTo(System.out);
    SOAPPart part = response.getSOAPPart();
    SOAPEnvelope env = part.getEnvelope();

    The last line in the above code fragment throws the following exception (see below). Does anyone know whats causing this? Please help.

    Thanks in advance ...
    Steve

    SEVERE: SAAJ0511: Unable to create envelope from given source
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:71)
    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:34)
    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:82)
    at test.SendDogLicense.main(SendDogLicense.java:124)
    Caused by: javax.xml.transform.TransformerException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:511)
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:63)
    ... 3 more
    Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:354)
    at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
    at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:494)
    ... 4 more

    DB:3.09:Saaj Response Message - Namespace_Err When Accessing Soap Envelope x7

    Hello,
    I experienced the same problem after I updated to SAAJ 1.2

    after days of debugging I found that it is caused by Xalan and not by
    the SAAJ. here is a reference to the bug description http://developer.java.sun.com/developer/bugParade/bugs/4966232.html

    now I upgraded to Xalan 2.6.0 and the problem is gone.

    only confusing thing is, that the combination SAAJ 1.1 + Xalan 2.5 works just fine.

  • RELEVANCY SCORE 3.06

    DB:3.06:Jaxm 73


    I am using the jaxm-1.1.1 and saaj-1.1.1 packages found in jwsdp-1.1. I have a client that i strying to send an a message to a web site. Does JAXM actually work? I ask because looking through the forum on the java site, notes from 12 months ago suggest it does not and I wondered if things have changed since then.

    I have the following code. Note that the setContent() call is commented out.

    SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();

    SOAPConnection con = factory.createConnection();
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();

    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope se = soapPart.getEnvelope();
    SOAPHeader header = se.getHeader();
    SOAPBody body = se.getBody();

    // header.detachNode();
    // se.getBody().detachNode();

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(file_param);
    DOMSource domSource = new DOMSource(doc);
    printOutDocument(doc, "fred.txt");
    printOutMessage(message, "soap.txt");
    // soapPart.setContent(domSource);
    java.net.URL endpoint = new java.net.URL("http://192.10.57.14:8080/timesheet/timesheet.html?form_no=93");
    SOAPMessage response = con.call(message, endpoint);
    con.close();

    When it is run, I get the following error.

    javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:161)
    etc,etc....
    javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:134)
    Caused by: javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:161)
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message
    at java.security.AccessController.doPrivileged(Native Method)
    Caused by: javax.xml.soap.SOAPException: Unable to internalize message
    at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:134)
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message
    Caused by: javax.xml.soap.SOAPException: Invalid Content-Type:text/html
    at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:161)

    The message looks like this
    soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
    soap-env:Header
    /soap-env:Header
    soap-env:Body/soap-env:Body/soap-env:Envelope

    The XML file is
    ?xml version="1.0" encoding="UTF-8"?
    entries
    entry
    day_of_week1/day_of_week
    week21/week
    year2003/year
    po_idPO_001/po_id
    start_time08.00/start_time
    end_time23.00/end_time
    break1.00/break
    descriptioncoding/description
    /entry
    /entries

    If I uncomment the setContent() call and move the printOutMessage call to after this, I get the follwoing error. Note as well that the SOAPMessage.writeTo in printOutMessage also fails. Both failures cause the same error output.

    Unable to get header stream in saveChanges: SOAP exception while trying to externalize: Unable to create envelope from given source because the root element is not named "Envelope"
    javax.xml.soap.SOAPException: Unable to get header stream in saveChanges: SOAP exception while trying to externalize: Unable to create envelope from given source because the root element is not named "Envelope"
    at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:370)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:412)
    at com.norricorp.client.SendJaxm.printOutMessage(SendJaxm.java:145)

    So, what I am doing wrong. I am using the jwsdp-1_1 tutorial for code examples.

    Regards,

    DB:3.06:Jaxm 73

    try to set contenttype to the response text/xml.

  • RELEVANCY SCORE 3.03

    DB:3.03:Create Soap Message 9s



    Hi,

    I would like to know different ways

    1. Create a SOAP message in CRM system.

    2. Send this to other systems?

    Please help.

    Rokie

    DB:3.03:Create Soap Message 9s


    Hi,

    I would like to know different ways

    1. Create a SOAP message in CRM system.

    2. Send this to other systems?

    Please help.

    Rokie

  • RELEVANCY SCORE 3.02

    DB:3.02:Unable To Create Soap Connection Factory 39


    I am trying to create a "SOAPConnectionFactory", but the following error happens:
    Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found

    I do not know what it is...
    The source code is:

    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();
    SOAPFactory sf = SOAPFactory.newInstance();

    Thanks

    Diana

    DB:3.02:Unable To Create Soap Connection Factory 39

    I am trying to create a "SOAPConnectionFactory", but the following error happens:
    Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found

    I do not know what it is...
    The source code is:

    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();
    SOAPFactory sf = SOAPFactory.newInstance();

    Thanks

    Diana

  • RELEVANCY SCORE 2.99

    DB:2.99:"A Serious Error Has Occured While Assembling The Soap Fault 1s



    I'm new to JBOSS but I can configure juddi on previos versions of JBOSS with MySQL and its working fine but when I try on JBOSS 4.2.0GA I get an error code 500 while publishing or making some inquiry while jUDDI is happy.Error log is like"ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImplERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault."Could anyone please tell me where am I doing wrong.

    DB:2.99:"A Serious Error Has Occured While Assembling The Soap Fault 1s


    I'm new to JBOSS but I can configure juddi on previos versions of JBOSS with MySQL and its working fine but when I try on JBOSS 4.2.0GA I get an error code 500 while publishing or making some inquiry while jUDDI is happy.Error log is like"ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImplERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault."Could anyone please tell me where am I doing wrong.

  • RELEVANCY SCORE 2.99

    DB:2.99:Jaxm Help!! pp


    After compiling and running the following code:

    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;

    public class Soap1 {

    public static void main(String Args[]) {

    try {
    SOAPConnectionFactory soapConnFactory =SOAPConnectionFactory.newInstance();
    SOAPConnection Connection=soapConnFactory.createConnection();

    MessageFactory messageFactory=MessageFactory.newInstance();
    SOAPMessage message=messageFactory.createMessage();

    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body= envelope.getBody();

    SOAPElement bodyElement=body.addChildElement(envelope.createName("schedule","cal","http://example.com"));
    message.saveChanges();

    System.out.println("\nREQUEST: \n");
    message.writeTo(System.out);
    System.out.println();

    Connection.close();
    }
    catch(Exception e){
    e.printStackTrace();
    }
    }
    }

    ... I get the following error:

    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at Soap1.main(Soap1.java:17)

    I have already included the saaj-api.jar file in my classpath.

    Can you please help me?

    Regards,

    George Drepaniotis
    Electrical Engineer
    Univercity of Patras
    Greece

    DB:2.99:Jaxm Help!! pp

    put the client.xml in the root of your compiled classpath.
    (add this classpath!)

  • RELEVANCY SCORE 2.98

    DB:2.98:Nw - Saaj U0096 Implementation k1



    Hi,

    Im trying to implement a simple application using SAAJ API to send a SOAP message to a web service in which I want to place a document in the SOAP Message Body.

    Ive gone over the sun tutorial http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/SAAJ2.html and while trying to implement a simple application I have encountered the following problems:

    1.jars in NW 6.4 didnt support the implementation. At first I had an exception when tried to create connection with the SOAPConnectionFactory of :

    Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found

    which later was solved by adding saaj-impl.jar downloaded from sun jws developer pack 1.6

    2.Later, I had another exception of UnsupportedOperationException when trying to create a message with the MessageFactory which was also solved by replacing the saaj-api.jar provided with the NW with the saaj-api.jar that was also downloaded with the developer pack.

    3.later on another exception when using the method getSOAPPart in SOAPMessage object:

    java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl

    at java.lang.ClassLoader.defineClass0(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.init(SOAPPartImpl.java:63)

    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.init(SOAPPart1_1Impl.java:29)

    at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:52)

    at com.sap.saaj.maintest.SaajTest.main(SaajTest.java:48)

    Please help me with the following questions:

    1. How to use saaj inside the NWDS env?

    2. Is there other recommended solution to attach xml document to a SOAP message body?

    3. A direction to any useful documentation on the subject in SAP env will be appreciated

    DB:2.98:Nw - Saaj U0096 Implementation k1


    Hi,

    Im trying to implement a simple application using SAAJ API to send a SOAP message to a web service in which I want to place a document in the SOAP Message Body.

    Ive gone over the sun tutorial http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/SAAJ2.html and while trying to implement a simple application I have encountered the following problems:

    1.jars in NW 6.4 didnt support the implementation. At first I had an exception when tried to create connection with the SOAPConnectionFactory of :

    Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found

    which later was solved by adding saaj-impl.jar downloaded from sun jws developer pack 1.6

    2.Later, I had another exception of UnsupportedOperationException when trying to create a message with the MessageFactory which was also solved by replacing the saaj-api.jar provided with the NW with the saaj-api.jar that was also downloaded with the developer pack.

    3.later on another exception when using the method getSOAPPart in SOAPMessage object:

    java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl

    at java.lang.ClassLoader.defineClass0(Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.init(SOAPPartImpl.java:63)

    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.init(SOAPPart1_1Impl.java:29)

    at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:52)

    at com.sap.saaj.maintest.SaajTest.main(SaajTest.java:48)

    Please help me with the following questions:

    1. How to use saaj inside the NWDS env?

    2. Is there other recommended solution to attach xml document to a SOAP message body?

    3. A direction to any useful documentation on the subject in SAP env will be appreciated

  • RELEVANCY SCORE 2.98

    DB:2.98:Soapexception In Netbaeans. px


    Hi,
    I am trying to create new swing based plugin in netbeans.

    Whenever i try to connect to connect to JAXB i am getting the following exception.
    I am using jdk1.5 and saaj-api.jar and saaj-impl.jar

    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:167)
    ... 35 more

    Can anybody help on this,
    Thanks,
    phani.

    DB:2.98:Soapexception In Netbaeans. px

    Hi,
    I am trying to create new swing based plugin in netbeans.

    Whenever i try to connect to connect to JAXB i am getting the following exception.
    I am using jdk1.5 and saaj-api.jar and saaj-impl.jar

    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:167)
    ... 35 more

    Can anybody help on this,
    Thanks,
    phani.

  • RELEVANCY SCORE 2.98

    DB:2.98:How To Handle Soap Fault In Pi 7.1 js



    Hi Folks,

    I am working on RFC to soap Synch interface without BPM.

    It is working fine when webservice returing succesful message. When soap giving error response I need to send the error message to rfc response. I created javamapping for this... But when testing end to end it is not calling the fault mapping.

    I follwed below link

    http://scn.sap.com/thread/3522976

    But I am unable to understand how many operation mapping and how many comuncation channels I ned to create...how did I work on this scenario.

    Please help me on this...

    Thanks,

    Sreenivas

    DB:2.98:How To Handle Soap Fault In Pi 7.1 js


    Hi,

    I tried already by removing the Donotuse soap envelope... But it is not calling the proper mapping...

    I have create 2 java mapping one for succesfull message and one for error message ... Invidualy both java mappings working fine.

    I used one java mapping for reesponse I mean webservice response to RFC response it is working fine in succesful response.

    Another Java mapping i used in fault message... When Webservice giveing false response this java mapping is not calleing.. Just I am getting empty rfc response...it is not calling the fault mapping....

    Please suggest...

  • RELEVANCY SCORE 2.97

    DB:2.97:Soap Receiver Adapter Error sf


    Dear All,I am facing SOAP Receiver adater error when PI contacting EDI SOAP webservice URL.Error: Error SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socketRecently EDI team made the firewall settings, but still I am facing error. Do you have any clues ?Thank you very much.Best Regards,Sateesh

    DB:2.97:Soap Receiver Adapter Error sf

    Hi Sateesh,Check below links also.http://scn.sap.com/thread/3432658http://scn.sap.com/thread/1567711Regards,Pranil.

  • RELEVANCY SCORE 2.96

    DB:2.96:"Unable To Create Soap Connection Factory" Running A Simple Ws From Form d1


    I created a simple WS proxy.
    The proxy class works perfectly if i run it from JDev as well as if I run the jar from command line.
    When I run it from form I get "Unable to create SOAP connection factory".
    I don't know if error depends from parameters I missed or from what.
    Could someone help me ?
    Tks
    Tullio

  • RELEVANCY SCORE 2.96

    DB:2.96:Spring-Ws 1.5.9 On Jboss As 7 zf



    Hi,

    I'm getting the following exception trying to deploy web application that uses spring-ws 1.5.9. This application works without any problem on tomcat and other web app. servers. I suspect that there is a conflict between jdk1.6 soap implementation and jboss 7 implementatin in JAR

    jboss-saaj-api_1.3_spec-1.0.1.Final.jar. I tried to exclude jboss module javax.xml.soap.api using jboss-deployment-structure.xml file

    jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"

    deployment

    exclusions

    module name="javax.xml.soap.api"/

    /exclusions

    /deployment

    /jboss-deployment-structure

    but it didn't help.

    Anyone had a similar problem or knows work around?

    Thnaks,

    Caused by: org.springframework.beans.factory.BeanCreationException: Invocation of init method failed; nested exception is org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException; nested exception is javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException

    at org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:169) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategies(DefaultStrategiesHelper.java:115) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:200) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:184) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.client.core.WebServiceTemplate.initMessageFactory(WebServiceTemplate.java:315) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.client.core.WebServiceTemplate.initDefaultStrategies(WebServiceTemplate.java:304) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.client.core.WebServiceTemplate.init(WebServiceTemplate.java:133) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.client.core.support.WebServiceGatewaySupport.init(WebServiceGatewaySupport.java:65) [spring-ws-core-1.5.9.jar:]

    at com.nrx.adg.messaging.gateway.xforms.SisXFromsClientGateway.init(SisXFromsClientGateway.java:8) [messaging-6.1_SP3-SNAPSHOT.jar:]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_25]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_25]

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_25]

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_25]

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) [spring-beans-3.0.6.RELEASE.jar:]

    ... 49 more

    Caused by: org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException; nested exception is javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException

    at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:147) [spring-ws-core-1.5.9.jar:]

    at org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:166) [spring-ws-core-1.5.9.jar:]

    ... 62 more

    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException

    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:112) [jboss-saaj-api_1.3_spec-1.0.1.Final.jar:1.0.1.Final]

    at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:133) [spring-ws-core-1.5.9.jar:]

    ... 63 more

    DB:2.96:Spring-Ws 1.5.9 On Jboss As 7 zf


    Alessio,

    Thank you so much. You are right I added the following jboss-deployment-structure.xml to my /WEB-INF/ folder and essentially I have turned Jboss into a stripped down web application server by excluding all the EE features and allowing my WAR to contain Apache CXF 2.5.0 etc.

    jboss-deployment-structure

    !-- For JBoss7AS and WS-Security to play nice must exclude the SAAJ jars --

    !-- This is the top level ear module, which contains all the classes in the EAR's lib folder --

    deployment

    exclusions

    module name="javaee.api" /

    /exclusions

    /deployment

    /jboss-deployment-structure

  • RELEVANCY SCORE 2.95

    DB:2.95:Can't Connect With Soap Server Help Me!!! Urgent!!! 13


    I receive error message when test connection:

    Testing connection...
    java.lang.Exception

    org.apache.soap.rpc.Response oracle.jdevimpl.webservices.util.JDevServiceManager.invokeMethod(java.lang.String, org.apache.soap.rpc.Parameter)
    java.lang.String[] oracle.jdevimpl.webservices.util.JDevServiceManager.list()
    void oracle.jdevimpl.webservices.wizard.connection.TestConnectionPanel$2.run()

    Unable to connect to SOAPServerConnection1 (http://localhost:7777/soap/servlet/soaprouter)
    Connection test failed: unable to connect

    My jdeveloper version is 9.0.2.822
    My soap server is running with OC4J
    My soap HTTP URL is http://localhost:7777/soap/servlet/soaprouter
    My user/password soap connection is blank both

    DB:2.95:Can't Connect With Soap Server Help Me!!! Urgent!!! 13


    Not sure if this means you resolved the problem. Two things I see:

    1. It looks like you are using Oracle9iAS rather than just OC4J. If you want to use Oracle SOAP as your note indicates, this note will help you set it up:

    OXM Mapping in JDeveloper

    2. Bear in mind Oracle SOAP (based on Apache SOAP) is deprecated going forward as Oracle9iAS comes pre-configured to do Web services based on SOAP, WSDL and UDDI around a J2EE model, out of the box with Oracle9iAS Web Services. See a sample of how it works for a simple Java class (and other types like EJB, PL/SQL etc) at:

    http://otn.oracle.com/tech/webservices/htdocs/series/content.html

    Mike.

  • RELEVANCY SCORE 2.94

    DB:2.94:Content Is Not Allowed In Prolog &Amp; Unable To Create Envelope From Given Src cx


    Hello,

    I have a method in my java appl which calls a web service with a soap message and the web service (jsp) sends another soap message as response to the calling method. When getSOAPBody() method is invoked on the SOAPMessage returned by the jsp, the following error occured:

    ERROR: 'Content is not allowed in prolog.'
    Mar 31, 2009 4:27:24 PM com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    Mar 31, 2009 4:27:24 PM FileStr.FileSystemSOAPInterface createFileStrFromSoapMsgPlease tell me how to rectify this problem. Thank you.

    DB:2.94:Content Is Not Allowed In Prolog &Amp; Unable To Create Envelope From Given Src cx

    hi,

    I have explained my problem a little elaborately [in this thread|http://forums.sun.com/thread.jspa?threadID=5377932] .

  • RELEVANCY SCORE 2.94

    DB:2.94:Udf To Populate Soap Message s9



    Hi all,

    We are doing soap interface. In that in one mapping we have to call Business Service and Communication Channel (SOAP adpter). Use the input to the UDF to create and populate soap message to be sent.

    How can we achieve this and please give me the sujjestions..

    thanks in advance.

    regards

    manoj

    DB:2.94:Udf To Populate Soap Message s9


    Hi,

    use this blog by Bhavesh:

    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function

    Regards,

    michal

    -

    a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"bXI / PI FAQ - Frequently Asked Questions/b/a

  • RELEVANCY SCORE 2.93

    DB:2.93:Ep Web Services Trouble 77



    What might be the reason of this:

    =================================

    Creation of the SOAP Connection Factory Error.

    javax.xml.soap.SOAPException: Unable to create SOAP Element Factory: Unable to create SOAP Factory: Provider com.systinet.saaj.soap.SOAPFactoryImpl not found

    ===================================

    ?

    Best regards,

    Denis

    DB:2.93:Ep Web Services Trouble 77


    Try the following in your pars before creating anything related to the WS:

    Class.forName("com.systinet.saaj.soap.SOAPFactoryImpl");

    (Or call this line during remote debugging)

    This ensures that it is really the class that is missing/unreachable at runtime which causes the error. If this fails with a ClassNotFoundError in a single server, the server is definitely different. You might want to compare the jdk_home/jre/lib/ext and jdk_home/lib/ext folders, as well as the system class path.

    Regards,

    Armin

  • RELEVANCY SCORE 2.92

    DB:2.92:File-To-Soap Synchronous c7



    Hi

    I have a scenario where i have to create the file-soap synchronous

    how we achieve that

    1. Do i have to create the outbound message syn for file

    venkat

  • RELEVANCY SCORE 2.92

    DB:2.92:Use Of Saaj 1.3 Conforming To Soap 1.2 Inn Wsad x8


    Hi All,

    I am developing a web service client. The webservice we are accessing requires that we use SOAP 1.2 for all communications.
    For this purpose I am using the SAAJ 1.3 APIs. I have imported saaj-api.jar and saaj-impl.jar. I am using WSAD 5.1.0 ad the IDE.

    I am unable to create a SOAP message. The same works when I use the default SAAJ apis available with WSAD.

    //Create Message
    MessageFactory requestMessageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
    SOAPMessage requestMessage = requestMessageFactory.createMessage();

    //Get the SOAPBody
    SOAPEnvelope requestEnvelope = requestMessage.getSOAPPart().getEnvelope();

    requestBody = requestEnvelope.getBody().addBodyElement(requestEnvelope.createName("Request");

    //Add Body element to SOAP Body
    SOAPElement hdrTag = requestBody.addChildElement(requestEnvelope.createName("Hdr"));
    SOAPElement reqBdyTag = requestBody.addChildElement(requestEnvelope.createName("ReqBdy"));

    System.out.println(requestBody.toString());

    The above line returns the value as [Request: null]

    Can anyone please tell me where I may be going wrong?

    DB:2.92:Use Of Saaj 1.3 Conforming To Soap 1.2 Inn Wsad x8

    Hi All,

    I am developing a web service client. The webservice we are accessing requires that we use SOAP 1.2 for all communications.
    For this purpose I am using the SAAJ 1.3 APIs. I have imported saaj-api.jar and saaj-impl.jar. I am using WSAD 5.1.0 ad the IDE.

    I am unable to create a SOAP message. The same works when I use the default SAAJ apis available with WSAD.

    //Create Message
    MessageFactory requestMessageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
    SOAPMessage requestMessage = requestMessageFactory.createMessage();

    //Get the SOAPBody
    SOAPEnvelope requestEnvelope = requestMessage.getSOAPPart().getEnvelope();

    requestBody = requestEnvelope.getBody().addBodyElement(requestEnvelope.createName("Request");

    //Add Body element to SOAP Body
    SOAPElement hdrTag = requestBody.addChildElement(requestEnvelope.createName("Hdr"));
    SOAPElement reqBdyTag = requestBody.addChildElement(requestEnvelope.createName("ReqBdy"));

    System.out.println(requestBody.toString());

    The above line returns the value as [Request: null]

    Can anyone please tell me where I may be going wrong?

  • RELEVANCY SCORE 2.92

    DB:2.92:Autolic: Soap Version Mismatch Or Invalid Soap Message 19



    Hello,

    when I try to use the autolic tool within the network shell, I'm getting the following error:

    SOAP FAULT: SOAP-ENV:VersionMismatch

    "SOAP version mismatch or invalid SOAP message"

    Unable to contact BladeLogic licensing service

    The proxy is set. Could there be any problem with the proxy? (the proxy works with other applications)

    DB:2.92:Autolic: Soap Version Mismatch Or Invalid Soap Message 19


    Can you check your proxy logs to see if anything is being blocked from the appserver ?

  • RELEVANCY SCORE 2.91

    DB:2.91:Failed To Deploy Java Wsdp 1.5 Web Sevice On Jboss 3.2.5 11



    I develop a RPC web service based on Java WSDP 1.5, but when I access it, the server throws the following exception:com.sun.xml.rpc.server.http.JAXRPCServletDelegate doPostSEVERE: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider org.apache.axis.soap.MessageFactoryImpl not foundJBoss 3.2.5 runing in default mode.thanks for your help very much.

    DB:2.91:Failed To Deploy Java Wsdp 1.5 Web Sevice On Jboss 3.2.5 11


    Yes, you are right. After download Apache Axis, and deploy the jars in the web-inf/lib directory, my applicaion works fine.Thanks for your reply.

  • RELEVANCY SCORE 2.90

    DB:2.90:Create Soap Client Call Webservice Through Ip sm


    I want to create SOAP client to send XML Message to web service through IP and port server with web service C#

    DB:2.90:Create Soap Client Call Webservice Through Ip sm

     I do not think this is a problem with your code. I think this is a problem with the server.If you like, you can send your agent the URL to this thread and tell him that a Microsoft MVP says that it looks like this is a server problem. I would be glad to work with the agent or those who he is working with to help resolve the problem from their end.John Saunders | Use File-New Project to create Web Service Projects

  • RELEVANCY SCORE 2.90

    DB:2.90:Jaxm Support In Wls 7.0? ac



    Does Bea WLS 7.0 (sp 2 or newer) support JAXM?

    It looks like the majority of the packages is there (SOAP Message
    Handler Chain Operations use them also), but at least an
    implementation of HttpSOAPConnectionFactory seems to be missing.

    So, what is the status with JAXM, is it going to be bundled in the
    WLS, or do we have to use jwsdp packages for that functionality?

    When I invoke the following

    SOAPConnectionFactory.newInstance();

    the exception looks like this:

    javax.xml.soap.SOAPException: Unable to create SOAP connection
    factory: Provider
    com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at testclient.WsTestDynamicClient.init(WsTestDynamicClient.java:45)
    at testclient.WsTestDynamicClient.main(WsTestDynamicClient.java:189)

    Regards,

    Toni N.
    --

    DB:2.90:Jaxm Support In Wls 7.0? ac

    Hi Toni,

    HttpSOAPConnectionFactory and the related classes you are
    using, are now part of a SAAJ [1] and WLS 8.1 [2] supports it.

    regards,
    -manoj

    [1] http://java.sun.com/xml/saaj/
    [2] http://commerce.bea.com/showproduct.jsp?family=WLPmajor=8.1minor=-1

    "toni nykanen" tpnykane@niksula.hut.fi wrote in message
    news:3e6deb8d$1@newsgroups.bea.com...

    Does Bea WLS 7.0 (sp 2 or newer) support JAXM?

    It looks like the majority of the packages is there (SOAP Message
    Handler Chain Operations use them also), but at least an
    implementation of HttpSOAPConnectionFactory seems to be missing.

    So, what is the status with JAXM, is it going to be bundled in the
    WLS, or do we have to use jwsdp packages for that functionality?

    When I invoke the following

    SOAPConnectionFactory.newInstance();

    the exception looks like this:

    javax.xml.soap.SOAPException: Unable to create SOAP connection
    factory: Provider
    com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at testclient.WsTestDynamicClient.init(WsTestDynamicClient.java:45)
    at testclient.WsTestDynamicClient.main(WsTestDynamicClient.java:189)

    Regards,

    Toni N.
    --

  • RELEVANCY SCORE 2.90

    DB:2.90:Solaris 10 U9 X86 Cannot Update Or Register System. mp


    I'm having and issue where I can not get updates/patches via smpatch or updatemanager on my workstation.
    I've recently upgraded (not replaced) the system to Solaris 10 u9.
    I've tried to re-register the system however, it keeps prompting for a proxy to access the internet. There is no proxy needed.
    I've read other posts and found the suc.sh tool which I've run - see below.

    If anyone has any suggestions besides re-building the workstation please let me know.

    Thanks!

    I'm getting these errors in /var/adm/messages:
    Nov 4 12:41:39 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.service.BaseServiceClient.dumpThrowable : XYXYXY
    Nov 4 12:41:39 ulysses java.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found; nested exception is:
    Nov 4 12:41:39 ulysses Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    Nov 4 12:41:39 ulysses at com.sun.scn.service.userinfo.UserInformationService_PortType_Stub.validate(UserInformationService_PortType_Stub.java:393)
    Nov 4 12:41:39 ulysses at com.sun.scn.service.userinfo.UISClient.validate(UISClient.java:135)
    Nov 4 12:41:39 ulysses at com.sun.scn.jmx.impl.UISClientLoginModule.login(UISClientLoginModule.java:173)
    Nov 4 12:41:39 ulysses at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Nov 4 12:41:39 ulysses at sun.reflect.NativeMethodA
    Nov 4 12:41:41 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.jmx.impl.AbstractComponent.log : SCNClientConfigImpl.activate("Use Sun Update Manager and Sun Update Connection to manage updates") -- module unlocked
    Nov 4 12:41:42 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.offering.prom.ProductRegOfferingInstance.getAuthToken : Did not get authToken from SCNClientLoginMBean.

    Here't the output of the suc.sh:
    # ./suc.sh

    User:
    Logname: root
    Thu Nov 4 12:44:09 EDT 2010
    ulysses

    smpatch settings:

    patchpro.backout.directory - ""
    patchpro.baseline.directory - /var/sadm/spool
    patchpro.download.directory - /var/sadm/spool
    patchpro.install.types - rebootafter:reconfigafter:standa rd
    patchpro.patch.source - https://getupdates1.sun.com/
    patchpro.patchset current2 current2
    patchpro.proxy.host - ""
    patchpro.proxy.passwd **** ****
    patchpro.proxy.port - 8080
    patchpro.proxy.user - ""

    smpatch analyze:

    No patches required.

    Sun UC patch revision:

    119789-10
    120336-04
    121082-06
    121119-13
    121119-15
    121119-16
    121119-17
    121454-02
    123004-04
    123006-08
    123631-03
    123896-20
    124187-07

    Solaris release:

    Oracle Solaris 10 9/10 s10x_u9wos_14a X86
    Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
    Assembled 11 August 2010

    Java -version:

    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

    Cacao Java version:

    java-home=/usr/jdk/jdk1.6.0_21

    Software Cluster:

    CLUSTER=SUNWCall

    All ccr properties:

    24:
    Property not defined: 24

    cns.assetid:

    cns.br.SunUCenabled:
    true

    cns.ccr.keyGenPath:
    /usr/lib/cc-ccr/bin/ccrKeyGen

    cns.clientid:

    cns.httpproxy.auth:

    cns.httpproxy.ipaddr:

    cns.httpproxy.port:

    cns.patchsvr.cachelocation:
    /var/sadm/spool/patchsvr

    cns.patchsvr.collection.dead.age:
    1

    cns.patchsvr.detector.dead.age:
    3

    cns.patchsvr.messages.dead.age:
    1

    cns.patchsvr.patchset.dead.age:
    3

    cns.patchsvr.patchsource:
    https://getupdates1.sun.com/

    cns.regtoken:

    cns.security.password:

    cns.security.privatekey:

    cns.security.publickey:

    cns.swup.UMautolaunch:
    false

    cns.swup.autoAnalysis.enabled:
    true

    cns.swup.checkinInterval:
    2

    cns.swup.lastCheckin:
    0

    cns.swup.patchbaseline:
    current

    cns.swup.regRequired:
    true

    cns.transport.serverurl:

    patchsvr settings:

    Patch source URL: https://getupdates1.sun.com/
    Cache location: /var/sadm/spool/patchsvr
    Messages maximum age: 1
    Collection maximum age: 1
    Patchset maximum age: 3
    Detector maximum age: 3

    Sun UC package status:

    SUNWbreg not installed
    SUNWdc not installed

    Please attach /tmp/ulysses-041110-suc-out.Z in your reply to the Sun Update Conn ection Technical Support Team.

    DB:2.90:Solaris 10 U9 X86 Cannot Update Or Register System. mp

    I'm having and issue where I can not get updates/patches via smpatch or updatemanager on my workstation.
    I've recently upgraded (not replaced) the system to Solaris 10 u9.
    I've tried to re-register the system however, it keeps prompting for a proxy to access the internet. There is no proxy needed.
    I've read other posts and found the suc.sh tool which I've run - see below.

    If anyone has any suggestions besides re-building the workstation please let me know.

    Thanks!

    I'm getting these errors in /var/adm/messages:
    Nov 4 12:41:39 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.service.BaseServiceClient.dumpThrowable : XYXYXY
    Nov 4 12:41:39 ulysses java.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found; nested exception is:
    Nov 4 12:41:39 ulysses Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    Nov 4 12:41:39 ulysses at com.sun.scn.service.userinfo.UserInformationService_PortType_Stub.validate(UserInformationService_PortType_Stub.java:393)
    Nov 4 12:41:39 ulysses at com.sun.scn.service.userinfo.UISClient.validate(UISClient.java:135)
    Nov 4 12:41:39 ulysses at com.sun.scn.jmx.impl.UISClientLoginModule.login(UISClientLoginModule.java:173)
    Nov 4 12:41:39 ulysses at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Nov 4 12:41:39 ulysses at sun.reflect.NativeMethodA
    Nov 4 12:41:41 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.jmx.impl.AbstractComponent.log : SCNClientConfigImpl.activate("Use Sun Update Manager and Sun Update Connection to manage updates") -- module unlocked
    Nov 4 12:41:42 ulysses cacao:default[3493]: [ID 702911 daemon.warning] com.sun.scn.offering.prom.ProductRegOfferingInstance.getAuthToken : Did not get authToken from SCNClientLoginMBean.

    Here't the output of the suc.sh:
    # ./suc.sh

    User:
    Logname: root
    Thu Nov 4 12:44:09 EDT 2010
    ulysses

    smpatch settings:

    patchpro.backout.directory - ""
    patchpro.baseline.directory - /var/sadm/spool
    patchpro.download.directory - /var/sadm/spool
    patchpro.install.types - rebootafter:reconfigafter:standa rd
    patchpro.patch.source - https://getupdates1.sun.com/
    patchpro.patchset current2 current2
    patchpro.proxy.host - ""
    patchpro.proxy.passwd **** ****
    patchpro.proxy.port - 8080
    patchpro.proxy.user - ""

    smpatch analyze:

    No patches required.

    Sun UC patch revision:

    119789-10
    120336-04
    121082-06
    121119-13
    121119-15
    121119-16
    121119-17
    121454-02
    123004-04
    123006-08
    123631-03
    123896-20
    124187-07

    Solaris release:

    Oracle Solaris 10 9/10 s10x_u9wos_14a X86
    Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
    Assembled 11 August 2010

    Java -version:

    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

    Cacao Java version:

    java-home=/usr/jdk/jdk1.6.0_21

    Software Cluster:

    CLUSTER=SUNWCall

    All ccr properties:

    24:
    Property not defined: 24

    cns.assetid:

    cns.br.SunUCenabled:
    true

    cns.ccr.keyGenPath:
    /usr/lib/cc-ccr/bin/ccrKeyGen

    cns.clientid:

    cns.httpproxy.auth:

    cns.httpproxy.ipaddr:

    cns.httpproxy.port:

    cns.patchsvr.cachelocation:
    /var/sadm/spool/patchsvr

    cns.patchsvr.collection.dead.age:
    1

    cns.patchsvr.detector.dead.age:
    3

    cns.patchsvr.messages.dead.age:
    1

    cns.patchsvr.patchset.dead.age:
    3

    cns.patchsvr.patchsource:
    https://getupdates1.sun.com/

    cns.regtoken:

    cns.security.password:

    cns.security.privatekey:

    cns.security.publickey:

    cns.swup.UMautolaunch:
    false

    cns.swup.autoAnalysis.enabled:
    true

    cns.swup.checkinInterval:
    2

    cns.swup.lastCheckin:
    0

    cns.swup.patchbaseline:
    current

    cns.swup.regRequired:
    true

    cns.transport.serverurl:

    patchsvr settings:

    Patch source URL: https://getupdates1.sun.com/
    Cache location: /var/sadm/spool/patchsvr
    Messages maximum age: 1
    Collection maximum age: 1
    Patchset maximum age: 3
    Detector maximum age: 3

    Sun UC package status:

    SUNWbreg not installed
    SUNWdc not installed

    Please attach /tmp/ulysses-041110-suc-out.Z in your reply to the Sun Update Conn ection Technical Support Team.

  • RELEVANCY SCORE 2.90

    DB:2.90:Problem When Using Webservice With Jdk1.4 And Weblogic 8.0 8j


    1. When I am trying to create a message factory with following piece of code, I get below error mentioned. This code i am calling through application. weblogic.webservice.core.soap.MessageFactoryImpl class is present Webservices.jar located in server lib directory. But this jar is not present in the application lib directory.
    MessageFactory msgFactory = MessageFactory.newInstance();

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance()Ljavax/xml/soap/MessageFactory;(Unknown Source)
    at com.openq.webservice.WebserviceHelper.cosumeUsingSAAJ(Ljava/lang/String;I)Ljava/lang/String;(WebserviceHelper.java:147)
    at com.openq.webservice.WebserviceHelper.constructWebserviceRequestAndSend(Lcom/openq/user/User;)V(WebserviceHelper.java:382)

    2. when I searched in net, I found I should set the property like
    -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl

    3. Above exception went off and got a new error,This code i am calling through application. weblogic.webservice.core.soap.MessageFactoryImpl class is present Webservices.jar located in server lib directory. But this jar is not present in the application lib directory.

    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: weblogic.webservice.core.soap.SOAPConnectionFactoryImpl
    at javax.xml.soap.SOAPConnectionFactory.newInstance()Ljavax/xml/soap/SOAPConnectionFactory;(Unknown Source)
    at com.openq.webservice.WebserviceHelper.sendRequest(Ljavax/xml/soap/SOAPMessage;Ljava/lang/String;)Ljavax/xml/soap/SOAPMessage;(WebserviceHelper.java:194)
    at com.openq.webservice.WebserviceHelper.cosumeUsingSAAJ(Ljava/lang/String;I)Ljava/lang/String;(WebserviceHelper.java:155)
    at com.openq.webservice.WebserviceHelper.constructWebserviceRequestAndSend(Lcom/openq/user/User;)V(WebserviceHelper.java:382)

    Can you please help me in resolving this problem as soon as possible.

    DB:2.90:Problem When Using Webservice With Jdk1.4 And Weblogic 8.0 8j

    1. When I am trying to create a message factory with following piece of code, I get below error mentioned. This code i am calling through application. weblogic.webservice.core.soap.MessageFactoryImpl class is present Webservices.jar located in server lib directory. But this jar is not present in the application lib directory.
    MessageFactory msgFactory = MessageFactory.newInstance();

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance()Ljavax/xml/soap/MessageFactory;(Unknown Source)
    at com.openq.webservice.WebserviceHelper.cosumeUsingSAAJ(Ljava/lang/String;I)Ljava/lang/String;(WebserviceHelper.java:147)
    at com.openq.webservice.WebserviceHelper.constructWebserviceRequestAndSend(Lcom/openq/user/User;)V(WebserviceHelper.java:382)

    2. when I searched in net, I found I should set the property like
    -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl

    3. Above exception went off and got a new error,This code i am calling through application. weblogic.webservice.core.soap.MessageFactoryImpl class is present Webservices.jar located in server lib directory. But this jar is not present in the application lib directory.

    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: weblogic.webservice.core.soap.SOAPConnectionFactoryImpl
    at javax.xml.soap.SOAPConnectionFactory.newInstance()Ljavax/xml/soap/SOAPConnectionFactory;(Unknown Source)
    at com.openq.webservice.WebserviceHelper.sendRequest(Ljavax/xml/soap/SOAPMessage;Ljava/lang/String;)Ljavax/xml/soap/SOAPMessage;(WebserviceHelper.java:194)
    at com.openq.webservice.WebserviceHelper.cosumeUsingSAAJ(Ljava/lang/String;I)Ljava/lang/String;(WebserviceHelper.java:155)
    at com.openq.webservice.WebserviceHelper.constructWebserviceRequestAndSend(Lcom/openq/user/User;)V(WebserviceHelper.java:382)

    Can you please help me in resolving this problem as soon as possible.

  • RELEVANCY SCORE 2.90

    DB:2.90:Soap And Java Problem....Create Soapmessage From File. Extremely Important! pc


    Hi,
    I've got a problem related to usage of SOAP in Java. I receive a file containing SOAP message with XML attachment. I store it on hard disk.
    Then I create a SOAP message as it is shown in source code below.
    When I try to get the attachment, the method doesn't return anything.
    If I pass to method createMessage value null instead of new MimeHeaders(), the result is the same.

    What can be the problem? How to solve it? Any idea?

    Looking forward any support.

    BR,
    rafikoko

    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage(new MimeHeaders(), new FileInputStream(xmlFile));
    Iterator attachments = message.getAttachments();

    log4j.error("TEST:before while:"+message.countAttachments());
    while(attachments.hasNext()){
    log4j.error("TEST:while");
    Object finvoice = attachments.next();
    log4j.error("TEST:Finvoice:"+finvoice);
    }

    DB:2.90:Soap And Java Problem....Create Soapmessage From File. Extremely Important! pc

    I've written in one of my previous posts that it was mistake to use words "extremely important". In fact it is extremely important for me, but it wasn't urgent. I agree that it was misleading. Sorry for that. I will know in the future that I shouldn't use this kind of words in the subject. I was involved in other task for a few last days, but today I am coming back to this problem. Could you please stop finding a fault with me and help if you have an appropriate knowledge?

  • RELEVANCY SCORE 2.90

    DB:2.90:Soap Service Client Using Jaxm And Saaj jd


    Hi,

    I am trying to create a SOAP service and i am using JAVA SUN APPLICATION SERVER (Ver 9)

    Even with the example posted on the jaxm I am not able to run.
    http://developers.sun.com/sw/building/codesamples/jaxm/index.html

    Though the example is written for Sun Application Server 7.
    I belive it should run even with App Server 8 or 9.

    I tried with another simple example listed below.

    Would appreciate if anyone replies.

    The error which i am getting is
    SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPE
    ceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:127)
    at SendSOAPMessage.sendMessage(SendSOAPMessage.java:86)
    at SendSOAPMessage.main(SendSOAPMessage.java:124)
    Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:
    ext/html. Is this an error message instead of a SOAP response?
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:121)
    ... 2 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message inste
    d of a SOAP response?
    at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.jav a:581)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:70)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnectio n.java:374)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Ht tpSOAPConnection.java:150)
    ... 4 more

    CAUSE:

    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html.
    s this an error message instead of a SOAP response?
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:121)
    at SendSOAPMessage.sendMessage(SendSOAPMessage.java:86)
    at SendSOAPMessage.main(SendSOAPMessage.java:124)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message inste
    d of a SOAP response?
    at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.jav a:581)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:70)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnectio n.java:374)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Ht tpSOAPConnection.java:150)
    ... 4 more

    Server Side
    import javax.xml.messaging.JAXMServlet;
    import javax.xml.messaging.ReqRespListener;
    import javax.xml.soap.SOAPMessage;
    import java.io.*;

    /**
    * This example echos the SOAP message received back to the sender.
    */
    public class SOAPEchoServlet extends JAXMServlet implements ReqRespListener {

    /**
    * SOAP Message received is echoed back to the sender.
    */
    public SOAPMessage onMessage (SOAPMessage soapMessage) {

    return soapMessage;
    }

    }

    Client Side

    import javax.xml.messaging.URLEndpoint;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPConnection;

    /**
    * This example demonstrates a hello world example for using JAXM API.
    */
    public class SendSOAPMessage {

    /**
    * send a simple soap message with JAXM API.
    */
    public void sendMessage (String url) {

    try {

    //System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
    //System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl");

    /**
    * Construct a default SOAP connection factory.
    */
    SOAPConnectionFactory connectionFactory = SOAPConnectionFactory.newInstance();

    /**
    * Get SOAP connection.
    */
    SOAPConnection soapConnection = connectionFactory.createConnection();

    /**
    * Construct a default SOAP message factory.
    */
    MessageFactory mf = MessageFactory.newInstance();
    /**
    * Create a SOAP message object.
    */
    SOAPMessage soapMessage = mf.createMessage();
    /**
    * Get SOAP part.
    */
    SOAPPart soapPart = soapMessage.getSOAPPart();
    /**
    * Get SOAP envelope.
    */
    SOAPEnvelope soapEnvelope = soapPart.getEnvelope();

    /**
    * Get SOAP body.
    */
    SOAPBody soapBody = soapEnvelope.getBody();

    /**
    * Add child element with the specified name.
    */

    //SOAPElement element = soapBody.addChildElement("HelloWorld");

    /**
    * Add text message
    */
    //element.addTextNode("Welcome to SunOne Web Services!");

    soapMessage.saveChanges();

    /**
    * Construct endpoint object.
    */
    URLEndpoint endpoint = new URLEndpoint (url);

    /**
    * Send SOAP message.
    */
    System.out.println("JUST BEFORE CALL METHOD");
    SOAPMessage resp = soapConnection.call(soapMessage, endpoint);

    /**
    * Print response to the std output.
    */
    resp.writeTo( System.out );

    /**
    * close the connection
    */
    soapConnection.close();

    } catch (java.io.IOException ioe) {
    ioe.printStackTrace();
    System.out.println("In the IO Exception");
    } catch (SOAPException soape) {
    soape.printStackTrace();
    System.out.println("In the SOAP Exception");
    } catch(Exception ex){
    System.out.println("In the main Excpetion");
    }
    }

    public static void main (String args[]) {

    String url = "http://localhost:8080/imqSOAPexamples/SOAPEchoServlet";

    if (args.length 0) {
    url = args[0];
    } else {
    System.out.println("Usage: " +
    "\tjava SendSOAPMessage SOAP servlet url\n" +
    "e.g.\n\tjava SendSOAPMessage http://localhost:8080/imqSOAPexamples/SOAPEchoServlet"
    );
    System.exit(1);
    }

    SendSOAPMessage ssm = new SendSOAPMessage();
    ssm.sendMessage(url);
    }

    }

    DB:2.90:Soap Service Client Using Jaxm And Saaj jd

    Hi,

    I am trying to create a SOAP service and i am using JAVA SUN APPLICATION SERVER (Ver 9)

    Even with the example posted on the jaxm I am not able to run.
    http://developers.sun.com/sw/building/codesamples/jaxm/index.html

    Though the example is written for Sun Application Server 7.
    I belive it should run even with App Server 8 or 9.

    I tried with another simple example listed below.

    Would appreciate if anyone replies.

    The error which i am getting is
    SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPE
    ceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:127)
    at SendSOAPMessage.sendMessage(SendSOAPMessage.java:86)
    at SendSOAPMessage.main(SendSOAPMessage.java:124)
    Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:
    ext/html. Is this an error message instead of a SOAP response?
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:121)
    ... 2 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message inste
    d of a SOAP response?
    at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.jav a:581)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:70)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnectio n.java:374)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Ht tpSOAPConnection.java:150)
    ... 4 more

    CAUSE:

    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html.
    s this an error message instead of a SOAP response?
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnectio n.java:121)
    at SendSOAPMessage.sendMessage(SendSOAPMessage.java:86)
    at SendSOAPMessage.main(SendSOAPMessage.java:124)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message inste
    d of a SOAP response?
    at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.jav a:581)
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:70)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnectio n.java:374)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Ht tpSOAPConnection.java:150)
    ... 4 more

    Server Side
    import javax.xml.messaging.JAXMServlet;
    import javax.xml.messaging.ReqRespListener;
    import javax.xml.soap.SOAPMessage;
    import java.io.*;

    /**
    * This example echos the SOAP message received back to the sender.
    */
    public class SOAPEchoServlet extends JAXMServlet implements ReqRespListener {

    /**
    * SOAP Message received is echoed back to the sender.
    */
    public SOAPMessage onMessage (SOAPMessage soapMessage) {

    return soapMessage;
    }

    }

    Client Side

    import javax.xml.messaging.URLEndpoint;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPConnection;

    /**
    * This example demonstrates a hello world example for using JAXM API.
    */
    public class SendSOAPMessage {

    /**
    * send a simple soap message with JAXM API.
    */
    public void sendMessage (String url) {

    try {

    //System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
    //System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl");

    /**
    * Construct a default SOAP connection factory.
    */
    SOAPConnectionFactory connectionFactory = SOAPConnectionFactory.newInstance();

    /**
    * Get SOAP connection.
    */
    SOAPConnection soapConnection = connectionFactory.createConnection();

    /**
    * Construct a default SOAP message factory.
    */
    MessageFactory mf = MessageFactory.newInstance();
    /**
    * Create a SOAP message object.
    */
    SOAPMessage soapMessage = mf.createMessage();
    /**
    * Get SOAP part.
    */
    SOAPPart soapPart = soapMessage.getSOAPPart();
    /**
    * Get SOAP envelope.
    */
    SOAPEnvelope soapEnvelope = soapPart.getEnvelope();

    /**
    * Get SOAP body.
    */
    SOAPBody soapBody = soapEnvelope.getBody();

    /**
    * Add child element with the specified name.
    */

    //SOAPElement element = soapBody.addChildElement("HelloWorld");

    /**
    * Add text message
    */
    //element.addTextNode("Welcome to SunOne Web Services!");

    soapMessage.saveChanges();

    /**
    * Construct endpoint object.
    */
    URLEndpoint endpoint = new URLEndpoint (url);

    /**
    * Send SOAP message.
    */
    System.out.println("JUST BEFORE CALL METHOD");
    SOAPMessage resp = soapConnection.call(soapMessage, endpoint);

    /**
    * Print response to the std output.
    */
    resp.writeTo( System.out );

    /**
    * close the connection
    */
    soapConnection.close();

    } catch (java.io.IOException ioe) {
    ioe.printStackTrace();
    System.out.println("In the IO Exception");
    } catch (SOAPException soape) {
    soape.printStackTrace();
    System.out.println("In the SOAP Exception");
    } catch(Exception ex){
    System.out.println("In the main Excpetion");
    }
    }

    public static void main (String args[]) {

    String url = "http://localhost:8080/imqSOAPexamples/SOAPEchoServlet";

    if (args.length 0) {
    url = args[0];
    } else {
    System.out.println("Usage: " +
    "\tjava SendSOAPMessage SOAP servlet url\n" +
    "e.g.\n\tjava SendSOAPMessage http://localhost:8080/imqSOAPexamples/SOAPEchoServlet"
    );
    System.exit(1);
    }

    SendSOAPMessage ssm = new SendSOAPMessage();
    ssm.sendMessage(url);
    }

    }

  • RELEVANCY SCORE 2.89

    DB:2.89:Soap Error With Weblogic 9.2 1m


    I am having following error with WebLogic 9.2 but it works fine outside.

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImpl
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.jpm.dibd.dividend.util.SingletonMessageFactory.init(SingletonMessageFactory.java:15)
    at com.jpm.dibd.dividend.util.SingletonMessageFactory.getMessageFactory(SingletonMessageFactory.java:25)
    at com.jpm.dibd.dividend.webservice.AnnouncementSummaryService.callDivAnnInqI have following jars included in my WEB-INF/lib
    axis.jar 1.4
    jaxrpc.jar
    saaj.jar 1.2

    I am also including following weblogic.xml in my WEB-INF

    ?xml version="1.0" encoding="ISO-8859-1"?
    weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
    container-descriptor
    prefer-web-inf-classestrue/prefer-web-inf-classes
    /container-descriptor
    /weblogic-web-appI have also tried putting these vms in Weblogic plugin in my eclipse
    -Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImplBut still no luck. Any recommendations will be really helpful.

    DB:2.89:Soap Error With Weblogic 9.2 1m

    It works!
    I tried redeploying again and again but it didn't work.
    I deleted the app from weblogic and re-deployed again and it worked. Quite wierd.

  • RELEVANCY SCORE 2.88

    DB:2.88:Soap Envelope Not Present In Payload 33



    Hi All,

    My scenario is IDOC to SOAP, Multimapping is implemented to create two different SOAP structures for an inbound IDOC.

    Receiver SOAP channel is configured with "Do Not Use SOAP Envelope" unchecked but still am not able to see SOAP envelope in the payload.

    The payload is an XML message with target fields populated.Please help in resolving this Issue.

    Thanks,

    Rohini Sandeep

    DB:2.88:Soap Envelope Not Present In Payload 33


    Hello Mark,

    Thanks for your inputs.

    Thanks,

    Rohini

  • RELEVANCY SCORE 2.88

    DB:2.88:Socket Creation Errror In Adaprer Engine sp



    Hi Experts,

    I am getting below error message in sxmb_moni.

    Here my sceanrio is proxy to Soap synchronous.

    ?xml version="1.0" encoding="UTF-8" standalone="yes" ?

    - !-- Inbound Message

    --

    - SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"

    SAP:CategoryXIAdapterFramework/SAP:Category

    SAP:Code area="MESSAGE"GENERAL/SAP:Code

    SAP:P1 /

    SAP:P2 /

    SAP:P3 /

    SAP:P4 /

    SAP:AdditionalTextcom.sap.aii.af.ra.ms.api.DeliveryException: unable to create a socket/SAP:AdditionalText

    SAP:ApplicationFaultMessage namespace="" /

    SAP:Stack /

    SAP:RetryM/SAP:Retry

    /SAP:Error

    please let me know the problem

    DB:2.88:Socket Creation Errror In Adaprer Engine sp


    My problem is resloved ...It was the issue with ports not opened at recevier end...

  • RELEVANCY SCORE 2.87

    DB:2.87:Bam Adapter Issue zd


    Hi All,
    I have a SOA application which puts a Message in the queue and consumes the message and writes to the BAM data objects.

    WebService-- Mediator--- JMS adapter (Produce)--- Queue--JMS Adapter(consume)--- Mediator---BAM Adapter

    The message gets consumed all good, and now the mediator tries to connect to the BAM server to write the contents of the message to the data objects defined in the BAM

    I am attaching the audit trail below

    Expand the payload nodes to view the details of the instance audit trail.
    Audit Level Settings View Raw XML

    --------------------------------------------------------------------------------
    Audit TrailonMessage
    10/03/2010 3:53:59 PMonCase "bam.writetoBAM"
    10/03/2010 3:53:59 PMonCase "BAM_WRITE.writetoBAM"
    10/03/2010 3:54:00 PMTransformed message part "_MessagesCollection" using "xsl/Fulfillment_To__MessagesCollection.xsl"
    10/03/2010 3:54:00 PMError during invoking 1-way operation "writetoBAM" on target service "BAM_WRITE"
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'writetoBAM' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. publishBAM:BAM_WRITE [ writetoBAM_ptt::writetoBAM(_MessagesCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element connection-factory/ The JCA Binding Component is unable to startup the Resource Adapter specified in the connection-factory/ element: location='eis/bam/soap'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the 'jndi-name' element in weblogic-ra.xml has not been set to eis/bam/soap.

    What could be likely issue here?

    Regards
    Thomas

    Edited by: user5108636 on 9/03/2010 21:25

    DB:2.87:Bam Adapter Issue zd

    Make sure that the plan.xml you are using, is from the same version of Weblogic.

    Perhaps server log can give you more detail about this error. This error generally comes when transaction times out but data-source tries to rollback it.

    Regards,
    Anuj

  • RELEVANCY SCORE 2.86

    DB:2.86:Urgent Need Of Help With A Java Wsdl Application f9


    Hello,

    I'm trying to turn a WORKING java application which uses some webservices, into a JAR file.
    Somehow i keep on getting the same errors all the time.
    I added all the necessary jar files, which are used in the program, in the global JAR file, but still the error remains.

    Can anyone help me with this error? (Error see below, WARNING EXTREMELY LONG!)

    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
    saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.init(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.init(Main.java:10)
    at test.Main.main(Main.java:14)

    CAUSE:

    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.init(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.init(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.i
    nit(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:93)
    ... 13 more

    CAUSE:

    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.init(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.init(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.i
    nit(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.ini
    t(LiteralFragmentSerializer.java:93)
    ... 13 more
    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------

    DB:2.86:Urgent Need Of Help With A Java Wsdl Application f9

    Rubaberry, start your own topic insread of hijacking a dead one. Locking.

  • RELEVANCY SCORE 2.86

    DB:2.86:Saaj Problem 7p


    I'm trying to run essentially the Request.java code out of J2EE 1.4 Tutorial and it blows up on the very first line
    SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
    complaining on inability to

    Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)

    Does anyone have any idea what should be done to fix it?
    Thanks a lot.

    DB:2.86:Saaj Problem 7p

    For those having the same trouble I found the jar. It is called saaj-impl.jar and is part of the JWSD. After you install the development kit it can be located in the saaj/lib directory.

  • RELEVANCY SCORE 2.86

    DB:2.86:Regression In Fuse 7 Regarding Cxf With Ws-Security fc



    Hello everyone,

    I've upgraded to Fuse v7.0.2 and one of my bundle is using CXF and WS-Security to provide a secured SOAP endpoint.

    When I try to send a SOAP request to my endpoint using SOAPUI, I have the following error response :

    org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader

    If I look into the logs, I have the attached error :

    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl could not be instantiated: java.lang.NullPointerException

    at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89):2.0.0.fuse-70-097

    I had the same issue with servicemix-4.4.1-fuse-01-13 and this issue was solved in version 4.4.1-fuse-07-11 because it was a known issue : http://fusesource.com/forums/thread.jspa?messageID=13092

    It seems that this previous fix has not been applied to Fuse Enterprise v7 though.

    Could you please fix this point in the next release of Fuse 7 as well ?

    Thanks

    Regards,

    Edited by: vmahe on Nov 7, 2012 10:45 AM

    Edited by: vmahe on Nov 7, 2012 10:49 AM

    Edited by: vmahe on Nov 7, 2012 10:51 AM

    DB:2.86:Regression In Fuse 7 Regarding Cxf With Ws-Security fc


    Hi,

    Yeah, I already have an internal jira ticket for this issue and it will be in next FUSE ESB 7.x release.

    Freeman

  • RELEVANCY SCORE 2.86

    DB:2.86:Saaj Namespace_Err Error d1


    I am trying to execute the following function to build a soap body with the example soap xml. I get a namespace error. I am using saaj 1.2 and j2sdk1.4.2 api files. Is there any conflict in XML parser vs saaj implementaion.

    Code
    -------------------------------

    public static void testSoap(){
    try{
    //soap connection
    SOAPConnectionFactory factory =
    SOAPConnectionFactory.newInstance();

    SOAPConnection connection = factory.createConnection();
    //creat soap message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();

    //get soap body from soap message
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope se = soapPart.getEnvelope();
    SOAPHeader sh = se.getHeader();

    //set soap content from XML file
    DocumentBuilderFactory dbFactory=
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = dbFactory.newDocumentBuilder();
    Document document = builder.parse("d:\\2work\\sforce\\test.xml");
    DOMSource domSource = new DOMSource(document);

    soapPart.setContent(domSource);

    //populate soap body with Document
    SOAPBody body = se.getBody();
    SOAPBodyElement docElement = body.addDocument(document);

    SOAPMessage result = connection.call(message, "https://www.localhost/servlet/servlet.SoapApi");
    System.out.println("result = "+result);
    }catch(Exception ex){
    ex.printStackTrace();
    }

    }

    SOAP XML
    ----------------------
    SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:Body
    m:GetLastTradePrice xmlns:m="http://wombat.ztrade.com"
    symbolSUNW/symbol
    /m:GetLastTradePrice
    /SOAP-ENV:Body
    /SOAP-ENV:Envelope

    Error Message
    ------------------------------
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

    at org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source)

    at org.apache.xerces.dom.ElementNSImpl.init(Unknown Source)

    at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.init(ElementImpl.java:59)

    at com.sun.xml.messaging.saaj.soap.impl.ElementFactory.createElement(ElementFactory.java:56)

    at com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl.createElement(SOAPDocumentImpl.java:83)

    at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)

    at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)

    at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)

    at com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl.importNode(SOAPDocumentImpl.java:130)

    at com.sun.xml.messaging.saaj.soap.impl.BodyImpl.addDocument(BodyImpl.java:175)

    at homework3.XmlRpc.testSoap(XmlRpc.java:239)

    DB:2.86:Saaj Namespace_Err Error d1

    hi

    add this line to your code
    dbFactory.setNamespaceAware(true);
    immediately after you instantiate dbFactory

    that takes care of the namepsace
    also the test.xml should have elements only inside the body

    the SOAP-ENV:Body and enveope tags should not be in the file

  • RELEVANCY SCORE 2.85

    DB:2.85:Error Occured While Processing The Soap Request In Jboss Eap 5.1.1 And Java Version: 1.6.0_26 xd



    Hi Team,

    We are facing below issue in our application while processing the soap request to create chart in our ncm application..

    Can you please help us to understand what could be issue and how to resolve the issue..the application is working fine jboss 5.1.0 GA

    Root Exception: [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory

    2013-09-20 19:19:16,930|http-127.0.0.1-8080-1|INFO|com.ge.appl.ts.messaging.soap.GenericTSSoapMessageSender|Added User Document ?xml version="1.0" encoding="UTF-8"?
    FlashChart xmlns="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0 http://genet2.appl.ge.com/Galileo/schemas/Flash/v1_0/graph.xsd"configsizewidth600/widthheight600/height/sizetitlePART_NUMBER Vs total/titlexAxislabelPART_NUMBER/labelsubLabelslabelposition2/positionvalue104PLG22G /value/labellabelposition4/positionvalue104PXB01R /value/labellabelposition6/positionvalue1062S3AAP2000 /value/labellabelposition8/positionvalue115E122101 /value/labellabelposition10/positionvalue123C268A /value/labellabelposition12/positionvalue265A6250G31 /value/labellabelposition14/positionvalue265A6250G32 /value/labellabelposition16/positionvalue265A6250G35 /value/labellabelposition18/positionvalue265A6250G38 /value/labellabelposition20/positionvalue265A6250G47 /value/labellabelposition22/positionvalue306B002 /value/labellabelposition24/positionvalue353GK3AA1AB /value/labellabelposition26/positionvalue460XMC /value/labellabelposition28/positionvalue55-501463G004 /value/labellabelposition30/positionvalue791A356G22 /value/labellabelposition32/positionvalue791A356G23 /value/labellabelposition34/positionvalue791A356G25 /value/labellabelposition36/positionvalueRR7EZ /value/label/subLabels/xAxisyAxislabeltotal/labelbegin0.0/beginend16590.0/endstep1659/step/yAxisorientationcolumn/orientationstackedfalse/stacked/configdatadataGroupname$/namecolor#0066FF/colordataValxValue2/xValueyValue0.052/yValue/dataValdataValxValue4/xValueyValue3.82/yValue/dataValdataValxValue6/xValueyValue1.061/yValue/dataValdataValxValue8/xValueyValue0/yValue/dataValdataValxValue10/xValueyValue3.062/yValue/dataValdataValxValue12/xValueyValue0.006/yValue/dataValdataValxValue14/xValueyValue0.074/yValue/dataValdataValxValue16/xValueyValue38.659/yValue/dataValdataValxValue18/xValueyValue10.198/yValue/dataValdataValxValue20/xValueyValue3.072/yValue/dataValdataValxValue22/xValueyValue29.971/yValue/dataValdataValxValue24/xValueyValue8.22/yValue/dataValdataValxValue26/xValueyValue5.098/yValue/dataValdataValxValue28/xValueyValue593.545/yValue/dataValdataValxValue30/xValueyValue8851.681/yValue/dataValdataValxValue32/xValueyValue16588.945/yValue/dataValdataValxValue34/xValueyValue12272.787/yValue/dataValdataValxValue36/xValueyValue0/yValue/dataVal/dataGroup/data/FlashChart
    2013-09-20 19:19:16,930|http-127.0.0.1-8080-1|INFO|com.ge.appl.ts.messaging.soap.GenericTSSoapMessageSender|Final Document to be sent ?xml version="1.0" encoding="UTF-8"?
    gea-sr:FlashChart xmlns:gea-sr="http://schemas.geappliances.com/soap/request/"FlashChart xmlns="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0 http://genet2.appl.ge.com/Galileo/schemas/Flash/v1_0/graph.xsd"configsizewidth600/widthheight600/height/sizetitlePART_NUMBER Vs total/titlexAxislabelPART_NUMBER/labelsubLabelslabelposition2/positionvalue104PLG22G /value/labellabelposition4/positionvalue104PXB01R /value/labellabelposition6/positionvalue1062S3AAP2000 /value/labellabelposition8/positionvalue115E122101 /value/labellabelposition10/positionvalue123C268A /value/labellabelposition12/positionvalue265A6250G31 /value/labellabelposition14/positionvalue265A6250G32 /value/labellabelposition16/positionvalue265A6250G35 /value/labellabelposition18/positionvalue265A6250G38 /value/labellabelposition20/positionvalue265A6250G47 /value/labellabelposition22/positionvalue306B002 /value/labellabelposition24/positionvalue353GK3AA1AB /value/labellabelposition26/positionvalue460XMC /value/labellabelposition28/positionvalue55-501463G004 /value/labellabelposition30/positionvalue791A356G22 /value/labellabelposition32/positionvalue791A356G23 /value/labellabelposition34/positionvalue791A356G25 /value/labellabelposition36/positionvalueRR7EZ /value/label/subLabels/xAxisyAxislabeltotal/labelbegin0.0/beginend16590.0/endstep1659/step/yAxisorientationcolumn/orientationstackedfalse/stacked/configdatadataGroupname$/namecolor#0066FF/colordataValxValue2/xValueyValue0.052/yValue/dataValdataValxValue4/xValueyValue3.82/yValue/dataValdataValxValue6/xValueyValue1.061/yValue/dataValdataValxValue8/xValueyValue0/yValue/dataValdataValxValue10/xValueyValue3.062/yValue/dataValdataValxValue12/xValueyValue0.006/yValue/dataValdataValxValue14/xValueyValue0.074/yValue/dataValdataValxValue16/xValueyValue38.659/yValue/dataValdataValxValue18/xValueyValue10.198/yValue/dataValdataValxValue20/xValueyValue3.072/yValue/dataValdataValxValue22/xValueyValue29.971/yValue/dataValdataValxValue24/xValueyValue8.22/yValue/dataValdataValxValue26/xValueyValue5.098/yValue/dataValdataValxValue28/xValueyValue593.545/yValue/dataValdataValxValue30/xValueyValue8851.681/yValue/dataValdataValxValue32/xValueyValue16588.945/yValue/dataValdataValxValue34/xValueyValue12272.787/yValue/dataValdataValxValue36/xValueyValue0/yValue/dataVal/dataGroup/data/FlashChart/gea-sr:FlashChart
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|INFO|chart exception|com.ge.appl.ts.messaging.soap.TSSoapMessagingException: Exception thrown while creating the message factory., Root Message: [Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory], Root Exception: [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory]
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|ERROR|ncm.action.GenerateChart|com.ge.appl.tsf.kernel.TSFBaseException: Error occured while processing the SOAP Request
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|ERROR|com.ge.appl.tsf.kernel.TSFBaseException|com.ge.appl.tsf.kernel.TSFBaseException: Error occured while processing the SOAP Request
    at ncm.action.GenerateChart.runAction(GenerateChart.java:284)
    at com.ge.appl.tsf.kernel.TSFBaseAppController.runActions(Unknown Source)
    at com.ge.appl.tsf.kernel.TSFBaseAppController.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.common.TSFCommonDispatcher.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.web.TSFDispatcher.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.web.TSFDispatcher.service(Unknown Source)

    DB:2.85:Error Occured While Processing The Soap Request In Jboss Eap 5.1.1 And Java Version: 1.6.0_26 xd


    Hi Team,

    We are facing below issue in our application while processing the soap request to create chart in our ncm application..

    Can you please help us to understand what could be issue and how to resolve the issue..the application is working fine jboss 5.1.0 GA

    Root Exception: [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory

    2013-09-20 19:19:16,930|http-127.0.0.1-8080-1|INFO|com.ge.appl.ts.messaging.soap.GenericTSSoapMessageSender|Added User Document ?xml version="1.0" encoding="UTF-8"?
    FlashChart xmlns="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0 http://genet2.appl.ge.com/Galileo/schemas/Flash/v1_0/graph.xsd"configsizewidth600/widthheight600/height/sizetitlePART_NUMBER Vs total/titlexAxislabelPART_NUMBER/labelsubLabelslabelposition2/positionvalue104PLG22G /value/labellabelposition4/positionvalue104PXB01R /value/labellabelposition6/positionvalue1062S3AAP2000 /value/labellabelposition8/positionvalue115E122101 /value/labellabelposition10/positionvalue123C268A /value/labellabelposition12/positionvalue265A6250G31 /value/labellabelposition14/positionvalue265A6250G32 /value/labellabelposition16/positionvalue265A6250G35 /value/labellabelposition18/positionvalue265A6250G38 /value/labellabelposition20/positionvalue265A6250G47 /value/labellabelposition22/positionvalue306B002 /value/labellabelposition24/positionvalue353GK3AA1AB /value/labellabelposition26/positionvalue460XMC /value/labellabelposition28/positionvalue55-501463G004 /value/labellabelposition30/positionvalue791A356G22 /value/labellabelposition32/positionvalue791A356G23 /value/labellabelposition34/positionvalue791A356G25 /value/labellabelposition36/positionvalueRR7EZ /value/label/subLabels/xAxisyAxislabeltotal/labelbegin0.0/beginend16590.0/endstep1659/step/yAxisorientationcolumn/orientationstackedfalse/stacked/configdatadataGroupname$/namecolor#0066FF/colordataValxValue2/xValueyValue0.052/yValue/dataValdataValxValue4/xValueyValue3.82/yValue/dataValdataValxValue6/xValueyValue1.061/yValue/dataValdataValxValue8/xValueyValue0/yValue/dataValdataValxValue10/xValueyValue3.062/yValue/dataValdataValxValue12/xValueyValue0.006/yValue/dataValdataValxValue14/xValueyValue0.074/yValue/dataValdataValxValue16/xValueyValue38.659/yValue/dataValdataValxValue18/xValueyValue10.198/yValue/dataValdataValxValue20/xValueyValue3.072/yValue/dataValdataValxValue22/xValueyValue29.971/yValue/dataValdataValxValue24/xValueyValue8.22/yValue/dataValdataValxValue26/xValueyValue5.098/yValue/dataValdataValxValue28/xValueyValue593.545/yValue/dataValdataValxValue30/xValueyValue8851.681/yValue/dataValdataValxValue32/xValueyValue16588.945/yValue/dataValdataValxValue34/xValueyValue12272.787/yValue/dataValdataValxValue36/xValueyValue0/yValue/dataVal/dataGroup/data/FlashChart
    2013-09-20 19:19:16,930|http-127.0.0.1-8080-1|INFO|com.ge.appl.ts.messaging.soap.GenericTSSoapMessageSender|Final Document to be sent ?xml version="1.0" encoding="UTF-8"?
    gea-sr:FlashChart xmlns:gea-sr="http://schemas.geappliances.com/soap/request/"FlashChart xmlns="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.geconsumerproducts.com/GalileoFlash/v1_0 http://genet2.appl.ge.com/Galileo/schemas/Flash/v1_0/graph.xsd"configsizewidth600/widthheight600/height/sizetitlePART_NUMBER Vs total/titlexAxislabelPART_NUMBER/labelsubLabelslabelposition2/positionvalue104PLG22G /value/labellabelposition4/positionvalue104PXB01R /value/labellabelposition6/positionvalue1062S3AAP2000 /value/labellabelposition8/positionvalue115E122101 /value/labellabelposition10/positionvalue123C268A /value/labellabelposition12/positionvalue265A6250G31 /value/labellabelposition14/positionvalue265A6250G32 /value/labellabelposition16/positionvalue265A6250G35 /value/labellabelposition18/positionvalue265A6250G38 /value/labellabelposition20/positionvalue265A6250G47 /value/labellabelposition22/positionvalue306B002 /value/labellabelposition24/positionvalue353GK3AA1AB /value/labellabelposition26/positionvalue460XMC /value/labellabelposition28/positionvalue55-501463G004 /value/labellabelposition30/positionvalue791A356G22 /value/labellabelposition32/positionvalue791A356G23 /value/labellabelposition34/positionvalue791A356G25 /value/labellabelposition36/positionvalueRR7EZ /value/label/subLabels/xAxisyAxislabeltotal/labelbegin0.0/beginend16590.0/endstep1659/step/yAxisorientationcolumn/orientationstackedfalse/stacked/configdatadataGroupname$/namecolor#0066FF/colordataValxValue2/xValueyValue0.052/yValue/dataValdataValxValue4/xValueyValue3.82/yValue/dataValdataValxValue6/xValueyValue1.061/yValue/dataValdataValxValue8/xValueyValue0/yValue/dataValdataValxValue10/xValueyValue3.062/yValue/dataValdataValxValue12/xValueyValue0.006/yValue/dataValdataValxValue14/xValueyValue0.074/yValue/dataValdataValxValue16/xValueyValue38.659/yValue/dataValdataValxValue18/xValueyValue10.198/yValue/dataValdataValxValue20/xValueyValue3.072/yValue/dataValdataValxValue22/xValueyValue29.971/yValue/dataValdataValxValue24/xValueyValue8.22/yValue/dataValdataValxValue26/xValueyValue5.098/yValue/dataValdataValxValue28/xValueyValue593.545/yValue/dataValdataValxValue30/xValueyValue8851.681/yValue/dataValdataValxValue32/xValueyValue16588.945/yValue/dataValdataValxValue34/xValueyValue12272.787/yValue/dataValdataValxValue36/xValueyValue0/yValue/dataVal/dataGroup/data/FlashChart/gea-sr:FlashChart
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|INFO|chart exception|com.ge.appl.ts.messaging.soap.TSSoapMessagingException: Exception thrown while creating the message factory., Root Message: [Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory], Root Exception: [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory]
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|ERROR|ncm.action.GenerateChart|com.ge.appl.tsf.kernel.TSFBaseException: Error occured while processing the SOAP Request
    2013-09-20 19:19:17,290|http-127.0.0.1-8080-1|ERROR|com.ge.appl.tsf.kernel.TSFBaseException|com.ge.appl.tsf.kernel.TSFBaseException: Error occured while processing the SOAP Request
    at ncm.action.GenerateChart.runAction(GenerateChart.java:284)
    at com.ge.appl.tsf.kernel.TSFBaseAppController.runActions(Unknown Source)
    at com.ge.appl.tsf.kernel.TSFBaseAppController.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.common.TSFCommonDispatcher.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.web.TSFDispatcher.runRequest(Unknown Source)
    at com.ge.appl.tsf.shells.web.TSFDispatcher.service(Unknown Source)

  • RELEVANCY SCORE 2.85

    DB:2.85:Java Api Create Record: c3



    I am trying to add a record using add receiving an error message. "Server did not recognize the value of HTTP Header SOAPAction: ."

    I noticed that modelId has to be an int. Not sure how to send it as an int.

    This is my code.

    SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();

    SOAPConnection connection = soapConnectionFactory.createConnection();

    MessageFactory factory = MessageFactory.newInstance();

    SOAPMessage message = factory.createMessage();

    message.setProperty(SOAPMessage.WRITE_XML_DECLARATION,"true");

    message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING,"utf-8");

    //Removing the SOAP Header

    message.getSOAPHeader().detachNode();

    //Creating the soap message

    SOAPPart soapPart = message.getSOAPPart();

    SOAPEnvelope envelope = soapPart.getEnvelope();

    envelope.addNamespaceDeclaration("xsi","http://www.w3.org/2001/XMLSchema-instance");

    envelope.addNamespaceDeclaration("xsd","http://www.w3.org/2001/XMLSchema");

    envelope.addNamespaceDeclaration("soap","http://schemas.xmlsoap.org/soap/envelope/");

    //Retrieving soap body

    SOAPBody body = message.getSOAPBody();

    envelope.removeNamespaceDeclaration("SOAP-ENV");

    envelope.setPrefix("soap");

    body.setPrefix("soap");

    //Create objects of the message parts

    QName bodyName = new QName("http://archer-tech.com/webservices/","CreateRecord");

    SOAPBodyElement bodyElement = body.addBodyElement(bodyName);

    bodyElement.addChildElement(new QName("sessionToken")).addTextNode(sessionId);

    bodyElement.addChildElement(new QName("moduleId")).addTextNode("1256");

    SOAPElement fieldValues = bodyElement.addChildElement(new QName("fieldValues"));

    SOAPElement recordElements = fieldValues.addChildElement(new QName("Record"));

    QName fieldName = new QName("Field");

    QName fieldId = new QName("id");

    QName fieldValue = new QName("value");

    recordElements.addChildElement(fieldName).addAttribute(fieldId, "23").addAttribute(fieldValue, "MyName");

    message.saveChanges();

    URL endpoint = new URL("https://egrcb.archer.rsa.com/ws/record.asmx");

    SOAPMessage response = connection.call(message, endpoint);

    DB:2.85:Java Api Create Record: c3

    Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and can go unanswered for a long time.

    You can do so by selecting "Move" under ACTIONS along the upper-right. Then begin with the keyword search: "RSA" and select from the list of communities that would be most relevant (and that you have access to).

    Seeing though that over 5 months have elapsed since you posted, maybe you have already found the answer (possibly opened up a ticket with support)? If so, once relocated, consider sharing the resolution and also marking the question as "Answered" so that it can help others that have the same question. If not, once relocated, it will then have more visibility by the community of dedicated customers, partners, and EMC employees that are eager to assist.

  • RELEVANCY SCORE 2.85

    DB:2.85:Getting Error In Outbound Soap Message jc



    What are possible causes of following error, I receive this when Generating the Sample SOAP message: Unable to load WSDL: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException:null

    DB:2.85:Getting Error In Outbound Soap Message jc


    Hi Amit,

    PLease check below points,

    1. Have you gave proper credential with soap roles?

    2. Please check the properties whether all are set?

    Thanks,

    Fathah


  • RELEVANCY SCORE 2.85

    DB:2.85:Messagecreationexception: ... Unable To Create Stax Reader Or Writer ma


    Hi all,
    Using weblogic 10.3.5 cluster.
    While reading domain log I noticed exception that occures many times but not everytime service is called:
    ####Oct 5, 2012 4:21:38 PM CEST Error com.sun.xml.ws.transport.http.HttpAdapter o11gwlapcls1.it.pu ManagedServer_1 [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' anonymous c7f1fa0768784d9f:-5f98dd52:13a2cc23e63:-8000-0000000000013395 1349446898515 BEA-000000 Couldn't create SOAP message due to exception: Unable to create StAX reader or writer
    com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: Unable to create StAX reader or writer
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:292)...Does anyone have idea why is this happening?

    DB:2.85:Messagecreationexception: ... Unable To Create Stax Reader Or Writer ma

    Problem solved after disabling option "Use Chunked Streaming Mode" in HTTP Transport Configuration section of Business Service Configuration on OSB.

    Regards

  • RELEVANCY SCORE 2.85

    DB:2.85:Unable To Create Message Factory For Soap Assembling The S s7



    I used to use JBoss4.0.5.GA + MySQL 5.0 + juddi-0.9-rc4, and there was no any problems.Now I'm using JBoss4.2.0.GA + MySQL 5.0 + juddi-0.9-rc4.When I connect to http://localhost:8080/juddi/happyjuddi.jsp, all the configs are correct and display color Green.But while I was using UDDI Browser 0.2 to check inquiry or publish, it returned HTTP STATUS 500 Error.The detail are as follow:
    10:53:24,250 INFO [STDOUT] 2007-06-05 10:53:24,250 [http-127.0.0.1-8080-1] ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory
    for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl
    10:53:24,281 INFO [STDOUT] 2007-06-05 10:53:24,281 [http-127.0.0.1-8080-1] ERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault.
    java.lang.NullPointerException
    at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:315)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
    10:53:24,281 INFO [STDOUT] 2007-06-05 10:53:24,281 [http-127.0.0.1-8080-1] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/juddi].[UDDIV2InquiryService] - Servlet.service() for servlet UDDIV2InquiryService threw exception
    java.lang.NullPointerException
    at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:344)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
    11:03:29,062 INFO [STDOUT] 2007-06-05 11:03:29,062 [http-127.0.0.1-8080-1] ERROR org.apache.juddi.registry.AbstractService - Unable to create message factory
    for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl
    11:03:29,062 INFO [STDOUT] 2007-06-05 11:03:29,062 [http-127.0.0.1-8080-1] ERROR org.apache.juddi.registry.AbstractService - A serious error has occured while assembling the SOAP Fault.
    java.lang.NullPointerException
    at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:315)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
    11:03:29,078 INFO [STDOUT] 2007-06-05 11:03:29,078 [http-127.0.0.1-8080-1] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/juddi].[UDDIV2InquiryService] - Servlet.service() for servlet UDDIV2InquiryService threw exception
    java.lang.NullPointerException
    at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:344)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)

    DB:2.85:Unable To Create Message Factory For Soap Assembling The S s7


    Hi Levi, I have your same problem.Can you explain me what i have to do with juddi-2.0rc5.jar?Excuse me but I'm new in JBoss.....thank you

  • RELEVANCY SCORE 2.83

    DB:2.83:Registration Faled - Solaris Express Community Edition B103 cf


    I installed Solaris Express CE 103 on a machine, but I cannot register either from the CLI or the GUI. I've tried most suggestions that I've found in similar threads without joy. I'm not using a proxy. I have tried changing my login credentials.

    ----------------------------------------------------------------------------------------

    # /usr/sbin/sconadm register -a -r /tmp/regfile

    sconadm is running

    Authenticating user ...

    failed registration!

    ----------------------------------------------------------------------------------------

    (selections from /var/cacao/instances/default/logs/cacao.0)

    Dec 24, 2008 10:51:01 PM com.sun.scn.offering.prom.AssetManagementServiceProvider registerAsset

    INFO: DEBUG: next call is ams.registerAsset

    Dec 24, 2008 10:51:01 PM com.sun.scn.service.BaseServiceClient dumpThrowable

    WARNING: XYXYXY

    java.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found; nested exception is:

    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found

    at com.sun.scn.offering.service.ams.AssetMgmtServiceIF_Stub.registerAsset(AssetMgmtServiceIF_Stub.java:296)

    at com.sun.scn.offering.prom.AssetManagementServiceProvider.registerAsset(AssetManagementServiceProvider.java:154)

    .........
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:619)

    Caused by: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found

    DB:2.83:Registration Faled - Solaris Express Community Edition B103 cf

    I just installed OpenSolaris Nevada build 108 for Sparc and I had exactly the same problem with exactly the same symptoms when I tried to register. I tried to copy the entire directory /usr/lib/cacao from Solaris 10 installed on the same computer and this did solve the problem though it's probably "not recommended" way to do it. So I assume that the problem is with the version of cacao supplied with OpenSolaris.
    Michael Plotkin.

  • RELEVANCY SCORE 2.83

    DB:2.83:New In Soap And Java. I Don?T Undertand The Error 1a


    This is my program:
    import javax.xml.soap.*;
    import java.util.*;
    import java.net.URL;
    public class EnvioSMS {

    public EnvioSMS() {
    }

    public static void main(String[] args) {
    try{
    int Argumentos = args.length;
    // Crear el objeto mensaje de SOAP
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage();
    System.out.println("uno");
    //montando la gerarquia de objetos del objeto mensaje SOAP
    //1 partes del mensaje
    SOAPPart soapPart = message.getSOAPPart();
    //2 parte ENVELOPE
    SOAPEnvelope envelope = soapPart.getEnvelope();
    //3 declaracion cabecera "HEADER"
    SOAPHeader header = envelope.getHeader();
    //4 declaracion de cuerpo "BODY"
    SOAPBody body = message.getSOAPBody();
    //5 declaracion del factory
    SOAPFactory soapFactory = SOAPFactory.newInstance();

    //6 declaracion de las partes del body donde llamare
    // a los eventos y pasare los datos de entrada
    // En caso de que se pase mas de un telefono

    SOAPBodyElement bodyElement = body.addBodyElement ( bodyName );
    bodyElement.addTextNode("Hola Mundo");
    System.out.println(body);

    }
    catch(Exception e)
    {
    System.out.println(e);
    }
    }
    }
    the program compile perfectly but when i run it appears the next message on the prompt
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found

    Could someone tell me what is the mistake?
    thanks

    DB:2.83:New In Soap And Java. I Don?T Undertand The Error 1a

    When you compile the program, you must have supplied enough CLASSPATH information so the class loader could find everything that it needed.

    Sounds like you need to do the same thing when you run. How are you setting the CLASSPATH when you execute the code?

    Did you find which JAR contains the missing class, as I recommended? Please do. - MOD

  • RELEVANCY SCORE 2.83

    DB:2.83:Message Envelope Not Found. Probably Empty Soap Message. Error While Testing Web Service cj



    Hi Gurus,

    I'm new to web service.

    I have created an RFC and a web service to create a pdf. When I try to test the web service, I'm getting an error : "Message Envelope not found. Probably empty soap message." I have tried all the links available in google, but i'm unable to resolve the issue.

    Can anyone help me to solve this.

    Many thanks in advance.

    DB:2.83:Message Envelope Not Found. Probably Empty Soap Message. Error While Testing Web Service cj


    Hi Gurus,

    I'm new to web service.

    I have created an RFC and a web service to create a pdf. When I try to test the web service, I'm getting an error : "Message Envelope not found. Probably empty soap message." I have tried all the links available in google, but i'm unable to resolve the issue.

    Can anyone help me to solve this.

    Many thanks in advance.

  • RELEVANCY SCORE 2.83

    DB:2.83:Unable To Create A Socket a1



    We are trying to receive an XML file from a partner (with SSL) through our PI system. About half of the files we receive during the day succeed normally. The other half fail with the following messages:

    In CC monitor:

    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: unable to create a socket: java.io.IOException: unable to create a socket

    SOAP: call failed: java.io.IOException: unable to create a socket

    and in SXMB_MONI

    com.sap.aii.af.ra.ms.api.DeliveryException: unable to create a socket

    Does anyone know why this could be happening to only some of the files and not others when all other things are the same?

    DB:2.83:Unable To Create A Socket a1


    Hi all

    In my case the issue has solved with user and password that I requested to the vendor before.

    Then I included it in my soap adapter.

  • RELEVANCY SCORE 2.83

    DB:2.83:Uddi - Connection And Soap Message Problem? 8d


    WL 8.1.5
    Ive let WL default with the UDDI configuration and am trying to connect from a 3rd party tool. Im dont know the correct inquiry and publish URI (guessing that its http://host:port/uddi/uddilistener based on the UDDI Explorer).

    When the 3rd party tool makes an inquiry, exceptions are thrown.

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.s oap.MessageFactoryImpl

    and

    javax.xml.registry.JAXRException: JAXR.UDDI.012: Connection is cl osed javax.xml.registry.JAXRException: JAXR.UDDI.012: Connection is closed
    at com.sun.xml.registry.uddi.ConnectionImpl.getRegistryService()Ljavax/xml/registry/Registry Service;(Unknown Source

    Im not quite sure what these exceptions mean.
    Could anyone shed some light on this? Thanks.

    DB:2.83:Uddi - Connection And Soap Message Problem? 8d

    WL 8.1.5
    Ive let WL default with the UDDI configuration and am trying to connect from a 3rd party tool. Im dont know the correct inquiry and publish URI (guessing that its http://host:port/uddi/uddilistener based on the UDDI Explorer).

    When the 3rd party tool makes an inquiry, exceptions are thrown.

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.s oap.MessageFactoryImpl

    and

    javax.xml.registry.JAXRException: JAXR.UDDI.012: Connection is cl osed javax.xml.registry.JAXRException: JAXR.UDDI.012: Connection is closed
    at com.sun.xml.registry.uddi.ConnectionImpl.getRegistryService()Ljavax/xml/registry/Registry Service;(Unknown Source

    Im not quite sure what these exceptions mean.
    Could anyone shed some light on this? Thanks.

  • RELEVANCY SCORE 2.82

    DB:2.82:In Which Jar Is .... ad



    hi ...iam a newbee to jboss... and i want to create a soap message with the message factory (java)...when i run the programm its says that it cant refer to the message factory imlpementation...i found out that the messagefactory is trying to create an object from a class in org.jboss.axis.soap.MessageFactoryImpl.javabut my problem now is ...in which jar is this java file ??i couldnt find it in the jboss-clientall.jar or anywhere else...perhaps anyone of you knows where to find it ...would be great ...thank yooumfggerch

    DB:2.82:In Which Jar Is .... ad


    thank you for the quick reply...i found it and it really is there ;)but now i get the exception:Failed to create MessageFactory: org.jboss.axis.soap.MessageFactoryImplwhat am i doing wrong ??mfggerch

  • RELEVANCY SCORE 2.82

    DB:2.82:[Urgent] Utf-8 Issue In Weblogic Soap Implementation zx


    Guyz,

    I am finding an issue with **weblogic.xml.saaj.MessageFactoryImpl** SOAP message factory mplementation class of weblogic. When it creates SOAP from inputstream which includes portuguese characters it does not recognise those characters.

    Any idea how to solve this issue?

    Chinmoy

    DB:2.82:[Urgent] Utf-8 Issue In Weblogic Soap Implementation zx

    Guyz,

    I am finding an issue with **weblogic.xml.saaj.MessageFactoryImpl** SOAP message factory mplementation class of weblogic. When it creates SOAP from inputstream which includes portuguese characters it does not recognise those characters.

    Any idea how to solve this issue?

    Chinmoy

  • RELEVANCY SCORE 2.82

    DB:2.82:Classcastexception While Securing The Soap Message aj


    Hi,

    I'm using JWSDP2.0 to sign a SOAP envelope with RAD7.0 dev environment.

    Code compiles fine but during runtime it throws ClassCastEaxception at

    cprocessor.secureOutboundMessage(context);

    ,and this become a show stopper for me,

    pls share your findings, if anyone has the same experience with JWSDP2.0, thanks in advance

    ////////////////EXCEPTION START\\\\\\\\\\\\\\\\\\\\\\\\\\

    com.sun.xml.wss.XWSSecurityException: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:79)
    at com.soap.client.SOAPTestClient.createSoapMessage(SOAPTestClient.java:219)
    at com.soap.client.SOAPTestClient.main(SOAPTestClient.java:84)
    Caused by: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
    at com.sun.xml.wss.impl.SecurableSoapMessage.findWsseSecurityHeaderBlock(SecurableSoapMessage.java:183)
    at com.sun.xml.wss.impl.SecurableSoapMessage.findOrCreateSecurityHeader(SecurableSoapMessage.java:225)
    at com.sun.xml.wss.impl.filter.TimestampFilter.process(TimestampFilter.java:120)
    at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:68)
    at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:218)
    at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:143)
    at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:118)
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:77)
    ... 2 more

    ////////////////EXCEPTION END\\\\\\\\\\\\\\\\\\\\\\\\\\

    /////////////////CODE SNIPPET\\\\\\\\\\\\\\\\\\\\\\\\\\\

    FileInputStream clientConfig = null;
    String properties_file = "C:/Myfolder"+System.getProperty("file.separator")+"client-config.xml";
    try {

    java.io.File file = new java.io.File(properties_file);

    //read client side security configuration
    clientConfig = new java.io.FileInputStream(
    file );

    } catch (Exception e) {
    e.printStackTrace();
    throw e;
    }

    //Create a XWSSProcessFactory.
    XWSSProcessorFactory factory = XWSSProcessorFactory.newInstance();

    //Create XWSSProcessor to secure out going soap messages.
    //Sample SecurityEnvironment is configured to
    //use client side keystores.

    XWSSProcessor cprocessor =
    factory.createProcessorForSecurityConfiguration(
    clientConfig, new SecurityEnvironmentHandler("client"));

    try{
    clientConfig.close();
    }catch(Exception ex){
    ex.printStackTrace();

    }

    // create SOAPMessage

    SOAPMessage msg = MessageFactory.newInstance().createMessage();
    SOAPBody body = msg.getSOAPBody();
    SOAPBodyElement sbe = body.addBodyElement(
    SOAPFactory.newInstance().createName(
    "StockSymbol",
    "tru",
    "http://fabrikam123.com/payloads"));
    sbe.addTextNode("QQQ");

    msg.saveChanges();
    //Create processing context and set the soap
    //message to be processed.
    ProcessingContext context = new ProcessingContext();
    context.setSOAPMessage(msg);
    System.out.println("-----Before Signing the message----" );
    msg.writeTo(System.out);
    System.out.println();
    //secure the message.
    SOAPMessage secureMsg = cprocessor.secureOutboundMessage(context);
    secureMsg.saveChanges();
    System.out.println("-----After Signing the message----" );

    DB:2.82:Classcastexception While Securing The Soap Message aj

    Hi,

    I'm using JWSDP2.0 to sign a SOAP envelope with RAD7.0 dev environment.

    Code compiles fine but during runtime it throws ClassCastEaxception at

    cprocessor.secureOutboundMessage(context);

    ,and this become a show stopper for me,

    pls share your findings, if anyone has the same experience with JWSDP2.0, thanks in advance

    ////////////////EXCEPTION START\\\\\\\\\\\\\\\\\\\\\\\\\\

    com.sun.xml.wss.XWSSecurityException: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:79)
    at com.soap.client.SOAPTestClient.createSoapMessage(SOAPTestClient.java:219)
    at com.soap.client.SOAPTestClient.main(SOAPTestClient.java:84)
    Caused by: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.soap.SOAPElement
    at com.sun.xml.wss.impl.SecurableSoapMessage.findWsseSecurityHeaderBlock(SecurableSoapMessage.java:183)
    at com.sun.xml.wss.impl.SecurableSoapMessage.findOrCreateSecurityHeader(SecurableSoapMessage.java:225)
    at com.sun.xml.wss.impl.filter.TimestampFilter.process(TimestampFilter.java:120)
    at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:68)
    at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:218)
    at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:143)
    at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:118)
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:77)
    ... 2 more

    ////////////////EXCEPTION END\\\\\\\\\\\\\\\\\\\\\\\\\\

    /////////////////CODE SNIPPET\\\\\\\\\\\\\\\\\\\\\\\\\\\

    FileInputStream clientConfig = null;
    String properties_file = "C:/Myfolder"+System.getProperty("file.separator")+"client-config.xml";
    try {

    java.io.File file = new java.io.File(properties_file);

    //read client side security configuration
    clientConfig = new java.io.FileInputStream(
    file );

    } catch (Exception e) {
    e.printStackTrace();
    throw e;
    }

    //Create a XWSSProcessFactory.
    XWSSProcessorFactory factory = XWSSProcessorFactory.newInstance();

    //Create XWSSProcessor to secure out going soap messages.
    //Sample SecurityEnvironment is configured to
    //use client side keystores.

    XWSSProcessor cprocessor =
    factory.createProcessorForSecurityConfiguration(
    clientConfig, new SecurityEnvironmentHandler("client"));

    try{
    clientConfig.close();
    }catch(Exception ex){
    ex.printStackTrace();

    }

    // create SOAPMessage

    SOAPMessage msg = MessageFactory.newInstance().createMessage();
    SOAPBody body = msg.getSOAPBody();
    SOAPBodyElement sbe = body.addBodyElement(
    SOAPFactory.newInstance().createName(
    "StockSymbol",
    "tru",
    "http://fabrikam123.com/payloads"));
    sbe.addTextNode("QQQ");

    msg.saveChanges();
    //Create processing context and set the soap
    //message to be processed.
    ProcessingContext context = new ProcessingContext();
    context.setSOAPMessage(msg);
    System.out.println("-----Before Signing the message----" );
    msg.writeTo(System.out);
    System.out.println();
    //secure the message.
    SOAPMessage secureMsg = cprocessor.secureOutboundMessage(context);
    secureMsg.saveChanges();
    System.out.println("-----After Signing the message----" );

  • RELEVANCY SCORE 2.82

    DB:2.82:Soapmessage.Getsoapbody(): Soapexceptionimpl: Unable To Create Envelope Fro jf


    When i call the getSOAPBody() method from a (valid) SOAPMessage object, i get this exception:

    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:71)
    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:34)
    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:82)
    at com.sun.xml.messaging.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:598)The SOAP message is a valid XML file with

    ?xml version="1.0" encoding="iso-8859-1"?

    header and a valid SOAP envelope. (Checked with two other tools that send the SOAP message successfully with a correct SOAP result).

    I want to get the the detail elements of a SOAP fault:

    /**
    * Get SOAP fault detail entries.
    *
    * @param message SOAP message.
    * @return Iterator with DetailEntry objects or null if not found/failed.
    */
    public static Iterator getDetailEntries(SOAPMessage message) {
    Iterator result = null;

    if (message != null) {
    try {
    SOAPBody body = message.getSOAPBody(); //throws SOAPExceptionImpl
    SOAPFault fault = body.getFault();
    Detail detail = fault.getDetail();
    result = detail.getDetailEntries();
    } catch (Exception e) {
    e.printStackTrace(System.err);
    }
    }//else: input unavailabel

    return result;
    }//getDetailEntries()but the first method (message.getSOAPBody()) throws this exception. Is this a known bug?

    DB:2.82:Soapmessage.Getsoapbody(): Soapexceptionimpl: Unable To Create Envelope Fro jf

    The response is well-formed (my debug procedure prints out the whole SOAP requests/responses). as i told: 2 external XML tools don't have problems with these SOAP XML files.

    the getSOAPBody() method must be there, otherwise the code won't compile and the following entry in the stack trace wouldn't be there:

    at com.sun.xml.messaging.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:598)

    i also tried the code you mentioned (getpart - getenvelope - get body) - same problem there ....

  • RELEVANCY SCORE 2.82

    DB:2.82:Unable To Send Soap Message cs



    On a Calgary instance, I'm trying to send a SOAP message to my server. I'm doing this:

    var ns = 'https://ismp-testing.mydomain.com/Demo';
    var action = 'bye';

    var soap = new SOAPEnvelope(action, ns);

    var request = new SOAPRequest('https://ismp-testing.mydomain.com/cgi-bin/hibye.pl');
    request.setSoapAction(ns + '#' + action);
    request.post(soap, true);

    gs.print(soap.getHttpStatus());
    gs.print(soap.getResponse());

    DB:2.82:Unable To Send Soap Message cs


    I'm not, no. My original code works perfectly, which the change you pointed out about calling request instead of soap on the responses. The issue is the security team threw up firewalls that I wasn't aware of Once I moved the testing to a box without the firewalls it works perfectly.

  • RELEVANCY SCORE 2.81

    DB:2.81:Only Homepage Works ax


    I am using xml to create items. When I send the new item to the home page it works, but when I send it to a sub folder it doesn't. I am placing a new db on the page. My subfolder is created on the home page of my eRoom, called "Folder", and my xml looks like this:?xml version="1.0" encoding="UTF-8"?SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:Body er:ExecuteXMLCommand xmlns:er="http://www.eroom.com/eRoomXML/2003/700" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" er:eRoomXML er:command er:select="Rooms/Room[URLName='PracticeeRoom']/Folder" er:create er:Item xsi:type="erItemTypeDBPage" er:NameDB1/er:Name er:Description xsi:type="erTextTypeSelfContainedHTML" er:HtmlCool DataBase made with XML/er:Html /er:Description/er:Item /er:create /er:command /er:eRoomXML /er:ExecuteXMLCommand /SOAP-ENV:Body/SOAP-ENV:EnvelopeResult:?xml version="1.0" encoding="UTF-8" standalone="yes"?SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:Body SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:faultcodeServer/SOAP-ENV:faultcode SOAP-ENV:faultstringThe message could not be processed by the server./SOAP-ENV:faultstring SOAP-ENV:detail status xmlns="http://www.eroom.com/eRoomXML/2003/700" code0x80040319/code descriptionNo target objects were found evaluating the command's select attribute./description /status /SOAP-ENV:detail /SOAP-ENV:Fault /SOAP-ENV:Body/SOAP-ENV:Envelope

    DB:2.81:Only Homepage Works ax

    Sorry forgot to name the item: Now it works. Line replaced with: er:command er:select="Rooms/Room[URLName='PracticeeRoom']/HomePage/Items/Item[Name=Folder']"

  • RELEVANCY SCORE 2.81

    DB:2.81:Application Accessing Servlet With Soap 1x



    My application is contacting and exchanging messages with a servlet using SOAP. To do this I have created a class called SOAPCommunicator. It seems to work perfect, although once in a while I get an exception saying that com.sun.xml.messaging.saaj.soap.MessageFactoryImpl was not found, even though it is bundeled in the same JAR as my application.

    This may anywhere in the program, long after it has in fact initiated the SOAPCommunicator and used it several times.

    I tried making the class a singelton, but it didn't solve any problems.

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:53)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
    at no.xait.createalab.soapcommunicator.SOAPCommunicator.runMethodOnServlet(SOAPCommunicator.java:32)
    at no.xait.createalab.soapcommunicator.SOAPCommunicator.getDrafts(SOAPCommunicator.java:252)
    at no.xait.createalab.dataAccess.getDrafts(dataAccess.java:167)
    at no.xait.createalab.OpenDraftInternalFrame.init(OpenDraftInternalFrame.java:51)
    at no.xait.createalab.Createalab.openDialog(Createalab.java:378)
    at no.xait.createalab.Createalab.actionPerformed(Createalab.java:783)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    javax.xml.soap.SOAPException: Unable to create message factory
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:56)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
    at no.xait.createalab.soapcommunicator.SOAPCommunicator.runMethodOnServlet(SOAPCommunicator.java:32)
    at no.xait.createalab.soapcommunicator.SOAPCommunicator.getDrafts(SOAPCommunicator.java:252)
    at no.xait.createalab.dataAccess.getDrafts(dataAccess.java:167)
    at no.xait.createalab.OpenDraftInternalFrame.init(OpenDraftInternalFrame.java:51)
    at no.xait.createalab.Createalab.openDialog(Createalab.java:378)
    at no.xait.createalab.Createalab.actionPerformed(Createalab.java:783)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.init(HttpSOAPConnection.java:53)
    ... 31 more

    DB:2.81:Application Accessing Servlet With Soap 1x

    I see the same thing happening, unpredictably. I am deploying as a single Jar via Java Web Start. Did you ever determine what the problem was?

  • RELEVANCY SCORE 2.81

    DB:2.81:Soap Problems kd


    Hello.

    I'm trying to migrate one application we have running on a Tomcat 5.5 Servlet container.

    We have suffered several problems, all related to SOAP (the rest of the application, pure HTTP GET/POST, works fine).

    When the application is deployed "out-of the box" the error I got was:

    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP connection factory: com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory

    I saw it explained in the post:
    http://forums.bea.com/thread.jspa?threadID=600007964

    Today, I'm getting this different error, I'm not quite sure why.

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:321)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.ericsson.saml2.spt.authentication.ControlTimeSessionFilter.doFilter(ControlTimeSessionFilter.java:128)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:129)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:61)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogi
    c.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
    at com.ericsson.saml2.utils.xml.XMLUtil.getAsString(XMLUtil.java:260)

    I have tried to start the application with the weblogic.xml parameter:
    container-descriptor
    prefer-web-inf-classestrue/prefer-web-inf-classes
    /container-descriptor

    But it does not even start, the traces I get are:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImp

    I've tried to remove some libraries, put additonal realted libraries but no success so far.

    I'va also tried with the tech preview 10.3 with almost the same result.

    The libraries I have in web-inf/lib are:

    activation.jar
    asm.jar
    cglib-2.1.3.jar
    commons-codec-1.3.jar
    commons-collections-3.1.jar
    commons-configuration-1.4.jar
    commons-fileupload-1.1.jar
    commons-httpclient-3.0.1.jar
    commons-io-1.2.jar
    commons-lang-2.3.jar
    commons-logging-1.0.4.jar
    commons-logging-1.1.jar
    dom4j-1.6.1.jar
    hibernate3.jar
    java2html.jar
    jax-qname.jar
    jaxb-api.jar
    jaxb-impl.jar
    jaxb-libs.jar
    jaxb-xjc.jar
    jstl-1.1.2.jar
    jta.jar
    log4j-1.2.13.jar
    mysql-connector-java-3.0.17-ga-bin.jar
    namespace.jar
    relaxngDatatype.jar
    saaj-api.jar
    saaj-impl.jar
    serializer.jar
    sitemesh-2.0.2.jar
    standard-1.1.2.jar
    xalan.jar
    xercesImpl.jar
    xmlsec-1.4.0.jar
    xsdlib.jar
    xstream-1.1.2.jar

    Thanks in advance.

    DB:2.81:Soap Problems kd

    Hello.

    I'm trying to migrate one application we have running on a Tomcat 5.5 Servlet container.

    We have suffered several problems, all related to SOAP (the rest of the application, pure HTTP GET/POST, works fine).

    When the application is deployed "out-of the box" the error I got was:

    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP connection factory: com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory

    I saw it explained in the post:
    http://forums.bea.com/thread.jspa?threadID=600007964

    Today, I'm getting this different error, I'm not quite sure why.

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:321)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.ericsson.saml2.spt.authentication.ControlTimeSessionFilter.doFilter(ControlTimeSessionFilter.java:128)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:129)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:61)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogi
    c.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
    at com.ericsson.saml2.utils.xml.XMLUtil.getAsString(XMLUtil.java:260)

    I have tried to start the application with the weblogic.xml parameter:
    container-descriptor
    prefer-web-inf-classestrue/prefer-web-inf-classes
    /container-descriptor

    But it does not even start, the traces I get are:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImp

    I've tried to remove some libraries, put additonal realted libraries but no success so far.

    I'va also tried with the tech preview 10.3 with almost the same result.

    The libraries I have in web-inf/lib are:

    activation.jar
    asm.jar
    cglib-2.1.3.jar
    commons-codec-1.3.jar
    commons-collections-3.1.jar
    commons-configuration-1.4.jar
    commons-fileupload-1.1.jar
    commons-httpclient-3.0.1.jar
    commons-io-1.2.jar
    commons-lang-2.3.jar
    commons-logging-1.0.4.jar
    commons-logging-1.1.jar
    dom4j-1.6.1.jar
    hibernate3.jar
    java2html.jar
    jax-qname.jar
    jaxb-api.jar
    jaxb-impl.jar
    jaxb-libs.jar
    jaxb-xjc.jar
    jstl-1.1.2.jar
    jta.jar
    log4j-1.2.13.jar
    mysql-connector-java-3.0.17-ga-bin.jar
    namespace.jar
    relaxngDatatype.jar
    saaj-api.jar
    saaj-impl.jar
    serializer.jar
    sitemesh-2.0.2.jar
    standard-1.1.2.jar
    xalan.jar
    xercesImpl.jar
    xmlsec-1.4.0.jar
    xsdlib.jar
    xstream-1.1.2.jar

    Thanks in advance.

  • RELEVANCY SCORE 2.81

    DB:2.81:Set Call Reject Message In Galaxy S2 Gt-I9100 1x


    Hi,

    I am unable to create set call reject message from the settings. I create the message and saved. No error. But file is not created.

    I have tried factory reset also. Please help me to fix the issue.

    Android Version 4.0.4

    Regards
    Balamurugan P

    DB:2.81:Set Call Reject Message In Galaxy S2 Gt-I9100 1x

    Hi,

    This forum is intented only for developers.
    Please contact your local Samsung support i.e. for UShttp://www.samsung.com/us/support/contact

    Regards,
    Tomasz Rozbicki
    Samsung Developers
    This content has been quoted from balamuruga19@s thought. (Link to original post)
    Hi,

    I am unable to create set call reject message from the settings. I create the message and saved. No error. But file is not created.

    I have tried factory reset also. Please help me to fix the issue.

    Android Version 4.0.4

    Regards
    Balamurugan P

  • RELEVANCY SCORE 2.80

    DB:2.80:Trying To Run A Bao Process From A Soap Call pz



    Hi,

    I'm trying to write a perl script that can execute a BAO process through the SOAP interface. Unfortunately I get the error
    com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy (found Password) : Additional security than required found

    The process is flagged as "expose to SOAP" and also my CDP is configured to accept SOAP calls. I don't know what to do. Can anyone help me?

    The perl script I'm using is this one:

    #!/opt/bmc/perl/bin/perl

    use strict;use warnings;use SOAP::Lite;

    my $host = 'localhost';my $webserviceurl = 'http://localhost:8080/baocdp/orca';my $serviceNs = 'http://bmc.com/ao/xsd/2008/09/soa';my $user = 'itsme';my $pwd = 'secret';my $bao_process = ':TEST-OA-demo_workflows:hello_world';my $grid = 'DEVGRID';

    # create SOAP callmy $soap = SOAP::Lite - uri ($serviceNs) - proxy ($webserviceurl) - outputxml ('true');

    my @envelope = ();

    # create headermy $processName = SOAP::Data-name("processName"=$bao_process)-prefix('soa');my $security=SOAP::Header-name("wsse:Security")-attr({'xmlns:wsse'='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'});my $userToken =SOAP::Header-name("wsse:UsernameToken" =
    SOAP::Header-value( SOAP::Header-name('wsse:Username')-value($user)-type(''), SOAP::Header-name('wsse:Password')-value($pwd)-type('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-tokenprofile-1.0#PasswordText"')));my $gridHeader = SOAP::Data-name("gridName"= $grid)-prefix('soa');push(@envelope,$security-value(\$userToken));push(@envelope,$gridHeader);push(@envelope,$processName);

    # create bodymy @parameters = ();push (@parameters, add_parameter("target",""));my $parameter_element = (SOAP::Data-name("parameters"= SOAP::Data-value( SOAP::Data-name("Input"= SOAP::Data-value(@parameters))-prefix('soa')))-prefix('soa'));push(@envelope,$parameter_element);# executemy $response = $soap-call(SOAP::Data-name('soa:executeProcess')-attr({'xmlns:soa' = $serviceNs}) = @envelope);

    print $response;sub add_parameter{ # parameter 0: key # parameter 1: value # # returns parameter element my $parameter = ( SOAP::Data-value(SOAP::Data-name("Parameter"= SOAP::Data-value( SOAP::Data-name("Name" = $_[0])-prefix('soa'), SOAP::Data-name("Value" = \SOAP::Data-value( SOAP::Data-name("Text" = $_[1])-prefix('soa') )) -attr({'soa:type' = 'string'})-prefix('soa')) )-prefix('soa'))); return $parameter;}

    DB:2.80:Trying To Run A Bao Process From A Soap Call pz


    Ah, thank you! With ---soapenv:mustUnderstand="1"--- it works.

  • RELEVANCY SCORE 2.80

    DB:2.80:Problems With Mtom And Soap Version 1.2 1f



    I've created a simple pojo ws and it works fine as long as the client sends requests using a SOAP 1.1 envelope, but if I use SOAP 1.2 I get this error back in a soap fault:S:VersionMissmatchCouldn't create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelopeDoes mtom work with soap version 1.2?Thanks,Bob

    DB:2.80:Problems With Mtom And Soap Version 1.2 1f


    Are you using the http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true binding ID in the @BindingType ?

  • RELEVANCY SCORE 2.80

    DB:2.80:Crystalras Not Starting "Unable To Create The Corba Osca Factory And Register It On The Ebus" Error xf



    Post Author: eric@labcorp

    CA Forum: Deployment

    The CrystalRas service on one of our two clustered servers is failing with a "Unable to create the Corba OSCA factory and register it on the eBus" error message. Has anyone seen this error before?

    DB:2.80:Crystalras Not Starting "Unable To Create The Corba Osca Factory And Register It On The Ebus" Error xf


    Post Author: Kirill Kliachtornyi

    CA Forum: Deployment

    Had the same issue with CRS XI R2 SP2. The issue was fixed by reinstalling the CRS software (I even manually deleted the C:\Program Files\Business Objects folder, just in case)

  • RELEVANCY SCORE 2.79

    DB:2.79:Soap Header In Jdeveloper sp


    I am attempting to greate a soap message in JDeveloper (not sure if that has any relivance at this point in time). I have followed roughly what Sun's WS Tutorial shows and I am getting an odd error message. Any suggestions are welcome at this point....
    Thanks,

    public void doGet(HttpServletRequest request, HttpServletResponse responseGet) throws ServletException, IOException
    {
    PrintWriter out = responseGet.getWriter();

    try
    {
    //set up connection
    SOAPConnectionFactory connectionFac = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = connectionFac.createConnection();
    //create message
    MessageFactory msgFac = MessageFactory.newInstance();
    SOAPMessage message = msgFac.createMessage();
    //create envolope
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    //create SOAP factory
    SOAPFactory soapFactory = SOAPFactory.newInstance();
    //create header
    SOAPHeader header = message.getSOAPHeader();
    Name headerName = soapFactory.createName("PartyInfo", "wsi", "http://ws-i.org/schemas/conformaceClain/");
    SOAPHeaderElement headerElement = header.addHeaderElement(headerName);
    headerElement.addAttribute(soapFactory.createName("ryan"), "http://ws-i.org/profiles/basic1.0/");
    //create body
    //SOAPBody body = message.getSOAPBody();
    //Name bodyName = soapFactory.createName("msg-root", null, null);
    //SOAPBodyElement msgrootElement = body.addBodyElement(bodyName);
    URL endpoint = new URL("http://localhost:7000/SOAP/");
    message.writeTo(System.out);
    message.saveChanges();
    SOAPMessage response = connection.call(message, endpoint);
    connection.close();
    }
    catch(SOAPException soape)
    {
    out.println(soape.getMessage());
    }
    catch(Exception e)
    {
    out.println(e.getMessage());
    }
    }StackTrace:
    XSL-1101: (Fatal Error) DOMSource node as this type not supported.

    javax.xml.transform.TransformerException: XSL-1101: (Fatal Error) DOMSource node as this type not supported.

    at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:732)

    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:198)

    at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:237)

    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:202)

    at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:461)

    at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:538)

    at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:591)

    at com.perot.core.sun.ActionServlet.doGet(ActionServlet.java:67)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)

    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)

    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:614)

    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)

    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:784)

    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)

    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)

    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

    at java.lang.Thread.run(Thread.java:536)

    Feb 4, 2004 6:10:28 PM com.sun.xml.messaging.saaj.soap.MessageImpl saveChanges

    SEVERE: SAAJ0539: Unable to get header stream in saveChanges

    DB:2.79:Soap Header In Jdeveloper sp

    In your case, the Oracle XML Parser is automatically being used. I would suggest that you remove that association form the Project Libraries or the Classpath and instead associate with the lastest Xerces parser from xml.apache.org.

    Not sure if that this will solve the problem but I recall having faced something similar while working on SOAP in JDeveloper.

    regards,
    harshad

  • RELEVANCY SCORE 2.79

    DB:2.79:Jax-Rpc Web Service Can Work In Jboss 5.1.0 Ga ??? 7m



    Helloo!

    I have a web service developed long time back uisng JWSDP 1.4 (JAX-RPC). I am deploying its war file in JBoss 5.1.0, it do not give error on deployment, however when I try to invoke the web service using a client then it gives below error.

    14:07:55,796 SEVERE [http] Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageF

    Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory

    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOAPMessageContext.java:185)

    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:132)

    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:787)

    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:365)

    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.DeliveryStamper.doFilter(DeliveryStamper.java:58)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.CertificateValidator.doFilter(CertificateValidator.java:77)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.MethodBlocker.doFilter(MethodBlocker.java:34)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

    at java.lang.Thread.run(Thread.java:662)

    CAUSE:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory

    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)

    at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory(SOAPMessageContext.java:182)

    at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:132)

    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:787)

    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:365)

    at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.DeliveryStamper.doFilter(DeliveryStamper.java:58)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.CertificateValidator.doFilter(CertificateValidator.java:77)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at ae.comtrust.sdes.dexh.filters.MethodBlocker.doFilter(MethodBlocker.java:34)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

    at java.lang.Thread.run(Thread.java:662)

    Kindly advise if JAXRPC based web service will work in JBoss 5.1.0? If yes then what can be the reason for above error?

    Best Regards!

    DB:2.79:Jax-Rpc Web Service Can Work In Jboss 5.1.0 Ga ??? 7m


    Hi,

    could you please show wich libs are in your WEB-INF/lib ? It seems that you have a classloader conflict. Wating for your answer

  • RELEVANCY SCORE 2.79

    DB:2.79:Reg: Jaxm Support On Bea Weblogic 7.0 kp



    BACKGROUND: I am developing a Point-to-point SOAP sender/receiver application.
    A client sends a SOAP message directly to the ultimate recipient
    using a SOAPConnection object. Here client to the intended recipient
    rather than to a messaging provider. Therefore, when the application
    sends a message, the message goes directly to the intended recipient.
    This kind of SOAP message exchange uses the APIs in the javax.xml.soap package.

    SOAPConnection (and its related classes) is a pure library implementation
    that lets you send SOAP messages directly to a remote party.

    CODE:
    try
    {
    String endpoint="http://localhost:7001/WholesaleVendor/wsv";
    URLEndpoint urlEndpoint= new URLEndpoint(endpoint);
    SOAPConnectionFactory soapConnFct = SOAPConnectionFactory.newInstance();
    SOAPConnection soapConnection = soapConnFct.createConnection();
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage requestSoapMsg = messageFactory.createMessage();
    //REST OF THE CODE FOLLOWS

    PROBLEM: It works on Sun's JWSDP 1.0. Howerver, on BEA Weblogic 7.0, I get error.
    The error is in the following line:
    ============================
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory:
    Provider com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at supermarket.InventoryBuilder.placePOOnWholeSaleVendor(InventoryBuilder.java:74)
    ============================

    QUERY: Is Point-to-point JAXM communication supported on BEA Weblogic 7.0?
    If not, what is alternative?
    What is the scope of JAXM support on BEA Weblogic 7.0?

    Thanking you in anticipation.

    Sachin Raverkar

    DB:2.79:Reg: Jaxm Support On Bea Weblogic 7.0 kp

    We have not implemented JAXM, nor has JAXM been included in J2EE 1.4.
    JAXM has not gotten much traction in the marketplace, and we have
    focused instead on JAX-RPC, which is available in 7.0 and 8.1. From
    your description, it sounds like JAX-RPC would meet your requirements.

    Note that we do support the SAAJ APIs, which were previously part of JAXM.

    -Don

    Sachin Raverkar wrote:

    BACKGROUND: I am developing a Point-to-point SOAP sender/receiver application.
    A client sends a SOAP message directly to the ultimate recipient
    using a SOAPConnection object. Here client to the intended recipient
    rather than to a messaging provider. Therefore, when the application
    sends a message, the message goes directly to the intended recipient.
    This kind of SOAP message exchange uses the APIs in the javax.xml.soap package.

    SOAPConnection (and its related classes) is a pure library implementation
    that lets you send SOAP messages directly to a remote party.

    CODE:
    try
    {
    String endpoint="http://localhost:7001/WholesaleVendor/wsv";
    URLEndpoint urlEndpoint= new URLEndpoint(endpoint);
    SOAPConnectionFactory soapConnFct = SOAPConnectionFactory.newInstance();
    SOAPConnection soapConnection = soapConnFct.createConnection();
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage requestSoapMsg = messageFactory.createMessage();
    //REST OF THE CODE FOLLOWS

    PROBLEM: It works on Sun's JWSDP 1.0. Howerver, on BEA Weblogic 7.0, I get error.
    The error is in the following line:
    ============================
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory:
    Provider com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at supermarket.InventoryBuilder.placePOOnWholeSaleVendor(InventoryBuilder.java:74)
    ============================

    QUERY: Is Point-to-point JAXM communication supported on BEA Weblogic 7.0?
    If not, what is alternative?
    What is the scope of JAXM support on BEA Weblogic 7.0?

    Thanking you in anticipation.

    Sachin Raverkar

  • RELEVANCY SCORE 2.79

    DB:2.79:Parsing Soap Message Exception jd


    In my environment, flex looks like unable to parse soap
    message if MTOM and SWA of my web services were enabled. Can anyone
    help me?

  • RELEVANCY SCORE 2.78

    DB:2.78:Soap Unable To Create A Socket After Os Upgrade Os/400 V5r4 To V7r1 k9



    Hello,

    after we upgraded our OS from System i V5R4 to V7R1 we have problems with our SOAP adapters.

    In the runtime workbench and also in the SXMB_MONI the following error occured:

    SOAP: call failed: java.io.IOException: unable to create a socket

    Message-Verarbeitung fehlgeschlagen. Grund: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket

    Before the OS upgrade the adapter rans without any errors and we tested the connection to the partner

    with an system running V5R4 with success. So it seems to be an error that came with the OS upgrade.

    Any idea? Had any one the same error after migration to V7R1? Thanks for your help.

    Best regards,

    Matthias

    DB:2.78:Soap Unable To Create A Socket After Os Upgrade Os/400 V5r4 To V7r1 k9


    Hello,

    the problem is connected to the SAP JVM and IPv6. The IPv6 stack was active, but only with the standard parameters and no further configuration. With the new release V7R1 and SAP JVM 5 patch 41 (I know this is an old patch) the DNS resolving doesn't work correctly. In consequence of this no SOAP adapter works, because we using host names and no ip adresses in the configuration.

    After deactivating the IPv6 stack the problem doesn't occured any more. In the future we plan to patch the SAP JVM at the most current level and test the JVM with IPv6 again. Problem is solved.

  • RELEVANCY SCORE 2.78

    DB:2.78:Soap Receiver Channel Error z9



    Hello Experts,

    I am facing an issue in Proxy to SOAP SYNC scenario in receiver cahnnel i am facing issue as follow

    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: unable to get URLConnection: com.sap.security.core.server.destinations.api.ConfigurationException: [destination_0004] Unable to create URLConnection:No logged in user found.: java.io.IOException: unable to get URLConnection: com.sap.security.core.server.destinations.api.ConfigurationException: [destination_0004] Unable to create URLConnection:No logged in user found

    With same traget URL i am bale to connect in QA environment in DEV i am facing the issue.

    Please suggest me if any one has faced similar issue any help is highly appreciated.

    Regards

    Praveen Reddy

    DB:2.78:Soap Receiver Channel Error z9


    Just a guts feeling but are you using principal propagation or some sort of SSO? You may want to skim developer traces and increase tracing level for the specific category (be careful in production environments because of performance impacts). If you at all can reproduce this issue, narrowing down the cause using XPI Inspector would also be an option.

    Cheers

    Jens

  • RELEVANCY SCORE 2.78

    DB:2.78:Fails To Load Soap Provider fs


    There have been a couple posts that have touched the same problem, but I havent found any answer yets. Basically when we run our client via Web Start it fails to load the MessageFactoryImpl. Here is the exception:

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider weblogic.webservice.core.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)

    The problem does not occur if we update the cache or log to the console. Other threads have mentioned to reset the ContextClassLoader, but this hasnt seemed to help.

    Any help is welcome!

    Thanks

    DB:2.78:Fails To Load Soap Provider fs

    Figured it out. Just wasnt resetting the Context class loader at the correct spot.

  • RELEVANCY SCORE 2.77

    DB:2.77:Wls 7.0 Soap Message Create Error 19



    Hi
    I am trying to create SOAP message using the jaxm api - and I am getting an error
    :

    java.lang.Error: NYI
    at weblogic.webservice.core.soap.SOAPPartImpl.setContent(SOAPPartImpl.java:242)

    at StandAlone.main(StandAlone.java:62)

    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    System.setProperty( "javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");

    MessageFactory mf = MessageFactory.newInstance();

    // Create a message from the message factory.
    SOAPMessage msg = mf.createMessage();

    SOAPPart soapPart=msg.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    envelope.getHeader().detachNode();

    StreamSource ssrc=new StreamSource( new FileInputStream(args[0] ));

    soapPart.setContent( ssrc );

    In the arg[0] I am trying to set an xml file with a very simple content:

    GetReply
    namesampletest/name
    /GetReply

    Why is it giving this error?? Is it a bug?

    thanks
    Anamitra

    DB:2.77:Wls 7.0 Soap Message Create Error 19


    hey thanks for the reply - any idea when this is going to get implemented?
    thanks
    Anamitra

    "Michael Wooten" wooten_michael@hotmail.com wrote:

    Hi Anamitra,

    Very pretty name :-)

    Anyway, this "error" is really just a NYI (for "Note Yet Implemented") message.
    It
    means that the setContent() method is there, but it has been rigged to throw
    an exception
    that contains the "NYI" message you got ;-)

    Regards,

    Mike Wooten

    "Anamitra" ana_mitra@yahoo.com wrote:
    Hi
    I am trying to create SOAP message using the jaxm api - and I am getting
    an error
    :

    java.lang.Error: NYI
    at weblogic.webservice.core.soap.SOAPPartImpl.setContent(SOAPPartImpl.java:242)

    at StandAlone.main(StandAlone.java:62)

    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    System.setProperty( "javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");

    MessageFactory mf = MessageFactory.newInstance();

    // Create a message from the message factory.
    SOAPMessage msg = mf.createMessage();

    SOAPPart soapPart=msg.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    envelope.getHeader().detachNode();

    StreamSource ssrc=new StreamSource( new FileInputStream(args[0] ));

    soapPart.setContent( ssrc );

    In the arg[0] I am trying to set an xml file with a very simple content:

    GetReply
    namesampletest/name
    /GetReply

    Why is it giving this error?? Is it a bug?

    thanks
    Anamitra

  • RELEVANCY SCORE 2.77

    DB:2.77:Sender Soap Channel Error 9x



    Hi All,

    I have a SOAP to Proxy asynchronous scenario, I am sending SOAP message from PI web service test page to PI and I am getting the following error in sender SOAP channel:

    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to split a synchronous message

    Appreciate your quick responses.

    Thanks,

    Pushpa

    DB:2.77:Sender Soap Channel Error 9x


    Thanks Azhar.

    I re checked QOE in channel and it was best effort. Now I changed to exactly once.

    It is working now.

    Thanks for your help.

  • RELEVANCY SCORE 2.77

    DB:2.77:Error While Publishin Into Uddi Registry 33


    I am using Tomcat 5.0 for web service and JWBSP 1.6 for UDDi registry ,
    i am getting an error while trying to execute a code JAXRPublishService .
    Error got when Service.createService() is called .

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:178)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:109)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:68)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:49)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:180)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:137)
    at org.freebxml.omar.client.xml.registry.QueryManagerImpl.getCallersUser(QueryManagerImpl.java:262)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryObjectImpl.init(RegistryObjectImpl.java:104)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryEntryImpl.init(RegistryEntryImpl.java:42)
    at org.freebxml.omar.client.xml.registry.infomodel.ServiceImpl.init(ServiceImpl.java:51)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:983)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:970)
    at JAXRPublishService.executePublish(JAXRPublishService.java:170)
    at JAXRPublishService.main(JAXRPublishService.java:81)
    javax.xml.registry.RegistryException: javax.xml.registry.RegistryException: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:55)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:180)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:137)
    at org.freebxml.omar.client.xml.registry.QueryManagerImpl.getCallersUser(QueryManagerImpl.java:262)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryObjectImpl.init(RegistryObjectImpl.java:104)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryEntryImpl.init(RegistryEntryImpl.java:42)
    at org.freebxml.omar.client.xml.registry.infomodel.ServiceImpl.init(ServiceImpl.java:51)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:983)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:970)
    at JAXRPublishService.executePublish(JAXRPublishService.java:170)
    at JAXRPublishService.main(JAXRPublishService.java:81)
    Caused by: javax.xml.registry.RegistryException: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:79)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:49)
    ... 10 more
    Caused by: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:247)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:109)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:68)
    ... 11 more
    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:178)
    ... 13 more

    DB:2.77:Error While Publishin Into Uddi Registry 33

    I am using Tomcat 5.0 for web service and JWBSP 1.6 for UDDi registry ,
    i am getting an error while trying to execute a code JAXRPublishService .
    Error got when Service.createService() is called .

    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:178)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:109)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:68)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:49)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:180)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:137)
    at org.freebxml.omar.client.xml.registry.QueryManagerImpl.getCallersUser(QueryManagerImpl.java:262)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryObjectImpl.init(RegistryObjectImpl.java:104)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryEntryImpl.init(RegistryEntryImpl.java:42)
    at org.freebxml.omar.client.xml.registry.infomodel.ServiceImpl.init(ServiceImpl.java:51)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:983)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:970)
    at JAXRPublishService.executePublish(JAXRPublishService.java:170)
    at JAXRPublishService.main(JAXRPublishService.java:81)
    javax.xml.registry.RegistryException: javax.xml.registry.RegistryException: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:55)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:180)
    at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:137)
    at org.freebxml.omar.client.xml.registry.QueryManagerImpl.getCallersUser(QueryManagerImpl.java:262)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryObjectImpl.init(RegistryObjectImpl.java:104)
    at org.freebxml.omar.client.xml.registry.infomodel.RegistryEntryImpl.init(RegistryEntryImpl.java:42)
    at org.freebxml.omar.client.xml.registry.infomodel.ServiceImpl.init(ServiceImpl.java:51)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:983)
    at org.freebxml.omar.client.xml.registry.LifeCycleManagerImpl.createService(LifeCycleManagerImpl.java:970)
    at JAXRPublishService.executePublish(JAXRPublishService.java:170)
    at JAXRPublishService.main(JAXRPublishService.java:81)
    Caused by: javax.xml.registry.RegistryException: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:79)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQuery(QueryManagerSOAPProxy.java:49)
    ... 10 more
    Caused by: javax.xml.registry.JAXRException: Error. Cannot connect to specified URL. Please check the URL and try again.
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:247)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:109)
    at org.freebxml.omar.common.QueryManagerSOAPProxy.submitAdhocQueryInternal(QueryManagerSOAPProxy.java:68)
    ... 11 more
    Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:178)
    ... 13 more

  • RELEVANCY SCORE 2.77

    DB:2.77:Wsdp 1.5 Deployed On Jboss 3.2.5 In Default Mode Failed 8c


    I got the following exception:
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP
    : Provider org.apache.axis.soap.MessageFactoryImpl not found

    My question is:
    Do I need to download and deploy axis with my applicaiton?

    Thanks for your help very much.

    DB:2.77:Wsdp 1.5 Deployed On Jboss 3.2.5 In Default Mode Failed 8c

    I got the following exception:
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP
    : Provider org.apache.axis.soap.MessageFactoryImpl not found

    My question is:
    Do I need to download and deploy axis with my applicaiton?

    Thanks for your help very much.

  • RELEVANCY SCORE 2.77

    DB:2.77:Com.Sun.Xml.Messaging.Saaj.Soap.Messagefactoryimpl Not Found 98


    I comoiled the following codes. It passed but could not be run.

    import javax.xml.soap.*;
    import java.io.*;
    import javax.xml.transform.stream.*;
    import javax.xml.messaging.*;

    public class AsinSOAP{
    public static void main(String args[]){
    try {
    javax.xml.soap.MessageFactory factory = javax.xml.soap.MessageFactory.newInstance();
    SOAPMessage request = factory.createMessage();
    SOAPPart soapPart = request.getSOAPPart();
    StreamSource src = new StreamSource(new FileInputStream(args[0]));
    soapPart.setContent(src);
    SOAPConnectionFactory conFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = conFactory.createConnection();
    URLEndpoint endpoint = new URLEndpoint(args[1]);
    System.out.println("AsinSearchQuery:");
    request.writeTo(System.out);
    SOAPMessage response = connection.call(request,endpoint);
    System.out.println("AsinSearchResult");
    response.writeTo(System.out);

    } catch (SOAPException e) {
    System.err.println(e.getMessage());
    } catch (IOException e){
    System.err.println(e.getMessage());
    }
    }
    }

    The error was
    Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageFactoryImpl not found

    I didn't use that class on my program. Why do we need it?

    DB:2.77:Com.Sun.Xml.Messaging.Saaj.Soap.Messagefactoryimpl Not Found 98

    Please don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.

    I'm locking this thread now.

  • RELEVANCY SCORE 2.77

    DB:2.77:Soap Connection Factory Error ax


    I have added required saaj*.jar files to the classpath where HttpSOAPConnectionFactory.class file is present but still i am getting this error.
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider com.sun.xml.messagi
    ng.saaj.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at SendSOAPMessageWithJMS.send(SendSOAPMessageWithJMS.java:79)
    at SendSOAPMessageWithJMS.main(SendSOAPMessageWithJMS.java:139)

    //Libraries needed to build SOAP message
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.Name;
    import javax.xml.soap.*;

    //Libraries needed to work with attachments (Java Activation Framework API)
    import java.net.URL;
    import javax.activation.DataHandler;

    //Libraries needed to convert the SOAP message to a JMS message and to send it
    import com.sun.messaging.xml.MessageTransformer;
    import com.sun.messaging.BasicConnectionFactory;

    //Libraries needed to set up a JMS connection and to send a message
    import javax.jms.TopicConnectionFactory;
    import javax.jms.TopicConnection;
    import javax.jms.JMSException;
    import javax.jms.Session;
    import javax.jms.Message;
    import javax.jms.TopicSession;
    import javax.jms.Topic;
    import javax.jms.TopicPublisher;

    //Define class that sends JMS message with SOAP payload
    public class SendSOAPMessageWithJMS
    {
    public SendSOAPMessageWithJMS()
    {
    }

    //Method to create and send the SOAP/JMS message
    public void send() throws Exception
    {
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();

    MessageFactory mf = MessageFactory.newInstance(); //create default factory
    SOAPMessage soapMessage= mf.createMessage(); //create SOAP message object
    SOAPPart soapPart = soapMessage.getSOAPPart();//start to drill down to body
    SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); //first the envelope
    SOAPBody soapBody = soapEnvelope.getBody();
    Name myName = soapEnvelope.createName("HelloWorld", "hw","http://www.sun.com/imq");

    //name for body element
    SOAPElement element = soapBody.addChildElement(myName); //add body element
    element.addTextNode("Welcome to SunOne Web Services."); //add text value

    //Create an attachment with the Java Framework Activation API
    URL url = new URL("http://webbridge.nat.bt.com:50350/SOAPRouterServlet");
    soapMessage.saveChanges();

    System.out.println("\n---- Request Message ----\n");
    soapMessage.writeTo(System.out);
    SOAPMessage reply = connection.call(soapMessage, url);
    System.out.println("\n\nReceived reply from: "+url);
    System.out.println("\n---- Reply Message ----\n");
    reply.writeTo(System.out);
    System.out.println();

    }

    //Main program to send SOAP message with JMS
    public static void main (String[] args)
    {
    SendSOAPMessageWithJMS ssm = new SendSOAPMessageWithJMS ();
    try
    {
    ssm.send();
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }
    }
    }

    DB:2.77:Soap Connection Factory Error ax

    I have added required saaj*.jar files to the classpath where HttpSOAPConnectionFactory.class file is present but still i am getting this error.
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider com.sun.xml.messagi
    ng.saaj.client.p2p.HttpSOAPConnectionFactory not found
    at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
    at SendSOAPMessageWithJMS.send(SendSOAPMessageWithJMS.java:79)
    at SendSOAPMessageWithJMS.main(SendSOAPMessageWithJMS.java:139)

    //Libraries needed to build SOAP message
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.Name;
    import javax.xml.soap.*;

    //Libraries needed to work with attachments (Java Activation Framework API)
    import java.net.URL;
    import javax.activation.DataHandler;

    //Libraries needed to convert the SOAP message to a JMS message and to send it
    import com.sun.messaging.xml.MessageTransformer;
    import com.sun.messaging.BasicConnectionFactory;

    //Libraries needed to set up a JMS connection and to send a message
    import javax.jms.TopicConnectionFactory;
    import javax.jms.TopicConnection;
    import javax.jms.JMSException;
    import javax.jms.Session;
    import javax.jms.Message;
    import javax.jms.TopicSession;
    import javax.jms.Topic;
    import javax.jms.TopicPublisher;

    //Define class that sends JMS message with SOAP payload
    public class SendSOAPMessageWithJMS
    {
    public SendSOAPMessageWithJMS()
    {
    }

    //Method to create and send the SOAP/JMS message
    public void send() throws Exception
    {
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = scf.createConnection();

    MessageFactory mf = MessageFactory.newInstance(); //create default factory
    SOAPMessage soapMessage= mf.createMessage(); //create SOAP message object
    SOAPPart soapPart = soapMessage.getSOAPPart();//start to drill down to body
    SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); //first the envelope
    SOAPBody soapBody = soapEnvelope.getBody();
    Name myName = soapEnvelope.createName("HelloWorld", "hw","http://www.sun.com/imq");

    //name for body element
    SOAPElement element = soapBody.addChildElement(myName); //add body element
    element.addTextNode("Welcome to SunOne Web Services."); //add text value

    //Create an attachment with the Java Framework Activation API
    URL url = new URL("http://webbridge.nat.bt.com:50350/SOAPRouterServlet");
    soapMessage.saveChanges();

    System.out.println("\n---- Request Message ----\n");
    soapMessage.writeTo(System.out);
    SOAPMessage reply = connection.call(soapMessage, url);
    System.out.println("\n\nReceived reply from: "+url);
    System.out.println("\n---- Reply Message ----\n");
    reply.writeTo(System.out);
    System.out.println();

    }

    //Main program to send SOAP message with JMS
    public static void main (String[] args)
    {
    SendSOAPMessageWithJMS ssm = new SendSOAPMessageWithJMS ();
    try
    {
    ssm.send();
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }
    }
    }

  • RELEVANCY SCORE 2.76

    DB:2.76:How To Access Soap Message Using Jaxp And Soap Class? fs


    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder b = factory.newDocumentBuilder();
    FileInputStream fr = new FileInputStream(args[1]);
    Document doc = b.parse(fr);
    Envelope msgEnv = Envelope.unmarshall (doc.getDocumentElement()); ---

    the exception raised:
    java.lang.IllegalArgumentException: Root element of a SOAP message must be: 'htt
    p://schemas.xmlsoap.org/soap/envelope/:Envelope'

    And the xml file is:
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"...
    ...
    /env:Envelope

    DB:2.76:How To Access Soap Message Using Jaxp And Soap Class? fs

    The problem is that your DocumentBuilderFactory is not set to be namespace aware. If add a call to factory.setNamespaceAware(true) that should fix your problem.