Generating soap message from given WSDL dynamically.

Hi,
I want to write code which can generate SOAP request message from given WSDL.
Any Libraries which is already doing this work so that i can extend them and implement my work on top of it.
I saw one similar thing called SOAPUI. But it is a desktop application. I want the similar thing as a library so that i can extend it
Thanks
mchepuri

I think that you can use the soapui libraries (a .jar file) and you can generate a soap message for a given wsdl....
but you cannot know the types of the "parameters" ... the library puts "?" where you have to put a value to send....

Similar Messages

  • Mapping error when trying to test SOAP message from RWB

    Hi all,
    I am very new to XI and I will like to get some advise for testing an asynchronous interface:
    SOAP -> XI -> File
    To test the interface:
    I logged into RWB - Component Monitoring - Adapter Engine - Test Message:
    URL: http://ootspdbs02:50100/XISOAPAdapter/MessageServlet?channel=:BS_RON_TEST:SOAP_Sender_Test
    Service: BS_RON_TEST
    Interface: MI_TestWebServiceServer_UpdatePatAdmissInfo
    Interface Namespace: urn:test:ron:fapl:TestWebServiceServer
    QOS: EO
    Payload (I generated this from XMLSpy with the WSDL generated in Integration Directory):
    <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:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd">
         <SOAP-ENV:Body>
              <m:MI_TestWebServiceServer_UpdatePatAdmissInfo xmlns:m="urn:test:ron:fapl:TestWebServiceServer">
              <ns0:Header>
                   <ns0:encoding>String</ns0:encoding>
                   <ns0:sendingApp>String</ns0:sendingApp>
                   <ns0:sendingFac>String</ns0:sendingFac>
                   <ns0:receivingApp>String</ns0:receivingApp>
                   <ns0:receivingFac>String</ns0:receivingFac>
                        <ns0:timeStamp>2001-12-17T09:30:47.0Z</ns0:timeStamp>
                   <ns0:messageType>String</ns0:messageType>
                   <ns0:messageId>String</ns0:messageId>                    <ns0:messageDesc>String</ns0:messageDesc>
                   </ns0:Header>
                   <ns0:patientID>String</ns0:patientID>
                   <ns0:institutionID>String</ns0:institutionID>
                   <ns0:caseNumber>String</ns0:caseNumber>
                   <ns0:admissionDateTime>2001-12-17T09:30:47.0Z</ns0:admissionDateTime>
                   <ns0:ward>String</ns0:ward>
                   <ns0:bed>String</ns0:bed>
                   <ns0:room>String</ns0:room>
              <ns0:movementCategory>String</ns0:movementCategory>
              <ns0:movementType>String</ns0:movementType>
              </m:MI_TestWebServiceServer_UpdatePatAdmissInfo>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The error I got in SXMB_MONI is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA: RuntimeException in Message-Mapping transformatio</b></SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    <Trace level="1" type="T"><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_TestMsg/CaseNumber. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:303) at .....</b>
    The message mapping consists of direct maps from each field in the source to the target (MT_TestMsg).
    CaseNumber is the first field to be mapped.
    In IR, I tested the interface and it works fine - no error in mapping.
    I assume I cannot use the message generated in IR, because the SOAP envelope is required. (I tried anyway, and encountered the same error.)
    Please advise how I can resolve this error.
    Many thanks in advance.
    Ron

    Hi all,
    I notice the tag and namespaces are changed when I generate the XML from the WSDL.
    I am expecting something this format in IR:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:updatePatientAdmissionInfo xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd">
       <ns0:Header>
          <ns0:encoding/>
          <ns0:sendingApp/>
          <ns0:sendingFac/>
          <ns0:receivingApp/>
          <ns0:receivingFac/>
          <ns0:timeStamp/>
          <ns0:messageType/>
          <ns0:messageId/>
          <ns0:messageDesc/>
       </ns0:Header>
       <ns0:patientID/>
       <ns0:institutionID/>
       <ns0:caseNumber/>
       <ns0:admissionDateTime/>
       <ns0:ward/>
       <ns0:bed/>
       <ns0:room/>
       <ns0:movementCategory/>
       <ns0:movementType/>
    </ns0:updatePatientAdmissionInfo>
    However, the message generated 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" <b>xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd"></b>
    <SOAP-ENV:Body>
    <b><m:MI_TestWebServiceServer_UpdatePatAdmissInfo  xmlns:m="urn:test:ron:fapl:TestWebServiceServer" ></b>
    <ns0:Header>
    <ns0:encoding>String</ns0:encoding>
    <ns0:sendingApp>String</ns0:sendingApp>
    <ns0:sendingFac>String</ns0:sendingFac>
    <ns0:receivingApp>String</ns0:receivingApp>
    <ns0:receivingFac>String</ns0:receivingFac>
    <ns0:timeStamp>2001-12-17T09:30:47.0Z</ns0:timeStamp>
    <ns0:messageType>String</ns0:messageType>
    <ns0:messageId>String</ns0:messageId> <ns0:messageDesc>String</ns0:messageDesc>
    </ns0:Header>
    <ns0:patientID>String</ns0:patientID>
    <ns0:institutionID>String</ns0:institutionID>
    <ns0:caseNumber>String</ns0:caseNumber>
    <ns0:admissionDateTime>2001-12-17T09:30:47.0Z</ns0:admissionDateTime>
    <ns0:ward>String</ns0:ward>
    <ns0:bed>String</ns0:bed>
    <ns0:room>String</ns0:room>
    <ns0:movementCategory>String</ns0:movementCategory>
    <ns0:movementType>String</ns0:movementType>
    <b></m:MI_TestWebServiceServer_UpdatePatAdmissInfo></b>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The namespace and the root tag is changed!
    I think this might be causing the problem.
    But how do I resolve it?

  • Error when parsing SOAP message from JSP

    i write a class to call SOAP message from a servlet on jdev 1013
    when i run the class alone it works fine
    soapMessage = this.buildSOAPMessagee();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    soapMessage.writeTo(output);
    SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
    SOAPConnection conn = connf.createConnection();
    SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
    smsg.writeTo(out);
    but when running same class same method from jsp page...i have Exception
    javax.xml.soap.SOAPException: Unable to get header stream in saveChanges     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686)     at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702)     at test.test2.ret(test2.java:341)     at untitled1.jspService(_untitled1.java:45)     [untitled1.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220)     at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574)     ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215)     ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.     at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)     ... 27 more
    dose anybody can help why that happend when running the code from JSP

    i write a class to call SOAP message from a servlet on jdev 1013
    when i run the class alone it works fine
    soapMessage = this.buildSOAPMessagee();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    soapMessage.writeTo(output);
    SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
    SOAPConnection conn = connf.createConnection();
    SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
    smsg.writeTo(out);
    but when running same class same method from jsp page...i have Exception
    javax.xml.soap.SOAPException: Unable to get header stream in saveChanges     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686)     at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702)     at test.test2.ret(test2.java:341)     at untitled1.jspService(_untitled1.java:45)     [untitled1.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220)     at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574)     ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215)     ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.     at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)     ... 27 more
    dose anybody can help why that happend when running the code from JSP

  • Soap messages from Oracle 9.2

    I want to send soap messages from Oracle 9.2 Database. Our requirement would involve sending multiple rows of data. Is this feasible?

    Dont know much about "soap messages" but if it is a part of your database and you want to send them to some other database then you can use oracle streams for that. Streams will give you best control to transfer "multiple rows" from one server to another.
    Daljit Singh

  • Would like to know how to read SOAP Messages from SOAP Client

    Hello,
    I am new to Webservices. Here is what I want to do.
    I need to develop a Web Service provider application.
    Here are the tools I am using to develop this application.
    a) WSAD 5.1.2
    b) Axis 1.0 built within WebSphere.
    I do have a WSDL file and I generated the code by using WSAD ==>WebService ==> Generate Java bean skeleton option. I want to know, how I can read the SOAP request message from the generated code and to add new SOAP header element.
    Any help you can provide would be greatly appreciated.

    Depending on the version of WebSphere you are using, there should be a menu option to create a dynamic web project. This will set up the basic structure of the application for you. Also, right-click on the newly created web application and there should be a context menu something like Web Services -> Deploy Web Service. This will do some more under-the-covers work for you.
    The webservices.xml deployment descriptor is only created when you generate your Java interfaces and helper classes. For example, if you are starting with a WSDL, you would right-click on the document, select Web Services -> Generate Java Bean Skeleton, and then follow the couple of dialog boxes afterwards. The webservices.xml document will then be created under the WEB-INF directory.
    I�d be wary of introducing any external web service software into a WebSphere environment. On my last project we ran into a few tricky SOAP API conflicts so we decided to stick with pure IBM implementations wherever possible. That said, this is some sample code that I've recycled from the Monson-Haefel book I've mentioned before:
    package sandbox;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.soap.*;
    public class MessageHandlerID extends javax.xml.rpc.handler.GenericHandler{
      QName [] headerNames = null;
      public QName [] getHeaders(){
        if(headerNames == null){
          QName myHeader = new QName("http://speck.net.au/message-id", "message-id");
          headerNames = new QName[] { myHeader };
        return headerNames;
      public boolean handleRequest(MessageContext context){
        String messageID = new java.rmi.dgc.VMID().toString();
        try{
          SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
          SOAPMessage message = soapCntxt.getMessage();
          SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
          Name blockName = SOAPFactory.newInstance().createName("message-id","mi","http://speck.net.au/message-id");
          SOAPHeaderElement headerBlock = header.addHeaderElement(blockName);
          headerBlock.setActor("http://speck.net.au/message-id/logger");
          headerBlock.addTextNode( messageID );
          return true;
        } catch(javax.xml.soap.SOAPException se){
              throw new javax.xml.rpc.JAXRPCException(se);
    }It doesn't do much but might give you some ideas.
    You may have already come across this, but I found the following RedBook invaluable:
    Wahli, U., Garcia, G. O., Cocasse, S. and Muetschard, M. (2004). WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. IBM.

  • WSImport-Error generating server code from existing wsdl ends in ERROR

    Hi,
    we have an existing wsdl, and need to change the Server Env. I am evaluating JAX-WS and WSImport, and it seems to be cool, but i have a Problem similar to this thread here:
    http://forum.java.sun.com/thread.jspa?threadID=739918&messageID=4245176
    I solved all JAXB Issues, but this error drives me crazy. All Types from XSD and WSDL are generated if i switch to extension="true". In my Opinion the message parts refer to schema types, i cant figure out, whats wronh there.
    [wsimport] parsing WSDL...
    [wsimport] [WARNING] cos-applicable-facets: Facet 'totalDigits' is not allowed by type Kontonummer.
    [wsimport] line 140 of file:/C:/Projekte/irech/dd/WebContent/customization/xsd/de/bankverlag/b2b/common.xsd
    [wsimport] [ERROR] Invalid wsdl:operation "init": its a rpc-literal operation, message part must refer to a schema type declaration
    [wsimport] line 101 of file:/C:/Projekte/irech/dd/WebContent/customization/NachfrageErstellung.wsdl
    wsdl:
    <?xml version='1.0'?>
    <wsdl:definitions name='foo' targetNamespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
    xmlns:tns='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/'
    xmlns:ns0='http://systinet.com/xsd/SchemaTypes/'
    xmlns:xns9="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:map='http://systinet.com/mapping/'>
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified"
    targetNamespace="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:map="http://systinet.com/mapping/"
    xmlns:tns="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:xns5="http://systinet.com/containers/literal/ms.net"
    xmlns:xns6="http://systinet.com/wsdl/org/idoox/config/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://systinet.com/wsdl/org/idoox/config/" schemaLocation="xsd/idoox.xsd"/>
    <xsd:import namespace="http://systinet.com/containers/literal/ms.net" schemaLocation="http://systinet.com/containers/literal/ms.net"/>
    <xsd:complexType name="WebServiceContext">
    <xsd:annotation>
    <xsd:appinfo>
    <map:java-type name="org.idoox.webservice.server.WebServiceContext"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="contextData" nillable="true" type="xns5:Map"/>
    <xsd:element name="contextId" nillable="true" type="xsd:string"/>
    <xsd:element name="lifeCycleService" nillable="true" type="tns:LifeCycleService"/>
    <xsd:element name="rootPath" nillable="true" type="xsd:string"/>
    <xsd:element name="serviceConfigurable" nillable="true" type="xns6:Configurable"/>
    <xsd:element name="serviceInstanceConfigurable" nillable="true" type="xns6:Configurable"/>
    <xsd:element name="serviceInstanceName" nillable="true" type="xsd:string"/>
    <xsd:element name="serviceName" nillable="true" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="LifeCycleService">
    <xsd:annotation>
    <xsd:appinfo>
    <map:java-type name="org.idoox.webservice.server.LifeCycleService"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://systinet.com/xsd/SchemaTypes/"
    xmlns:tns="http://systinet.com/xsd/SchemaTypes/"
    xmlns:xns4="http://systinet.com/wsdl/org/idoox/webservice/server/"
    xmlns:xns5="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/common.xsd"
    xmlns:xns6="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/ueberweisungsnachfrage/erstellen.xsd"
    xmlns:xns7="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/common.xsd"
    xmlns:xns8="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/lastschriftnachfrage/erstellen.xsd"
    xmlns:xns9="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/schecknachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/lastschriftnachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/common.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/nachfrage/ueberweisungsnachfrage/erstellen.xsd"/>
    <xsd:import namespace="https://test.irecherche.org/xsd/irecherche/de/bankverlag/b2b/common.xsd"/>
    <xsd:import namespace="http://systinet.com/wsdl/org/idoox/webservice/server/"/>
    <xsd:element name="p0" nillable="true" type="xns4:WebServiceContext"/>
    <xsd:element name="p0_1" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1" nillable="true" type="xns6:UeberweisungsnachfrageErstellungsformular"/>
    <xsd:element name="NachfrageErstellungResult_Response" nillable="true" type="xns7:NachfrageErstellungResult"/>
    <xsd:element name="p0_2" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1_3" nillable="true" type="xns8:LastschriftnachfrageErstellungsformular"/>
    <xsd:element name="p0_4" nillable="true" type="xns5:UserContext"/>
    <xsd:element name="p1_5" nillable="true" type="xns9:SchecknachfrageErstellungsformular"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name='NachfrageErstellung_erstelleSchecknachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0'/>
    <wsdl:part name='p1' element='ns0:p1_5'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_init_1_Request'>
    <wsdl:part name='p0' element='ns0:p0'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_destroy_1_Request'/>
    <wsdl:message name='NachfrageErstellung_erstelleLastschriftnachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleLastschriftnachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0_2'/>
    <wsdl:part name='p1' element='ns0:p1_3'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleUeberweisungsnachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_erstelleUeberweisungsnachfrage_1_Request'>
    <wsdl:part name='p0' element='ns0:p0_1'/>
    <wsdl:part name='p1' element='ns0:p1'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_destroy_Response'/>
    <wsdl:message name='NachfrageErstellung_erstelleSchecknachfrage_Response'>
    <wsdl:part name='response' element='ns0:NachfrageErstellungResult_Response'/>
    </wsdl:message>
    <wsdl:message name='NachfrageErstellung_init_Response'/>
    <wsdl:portType name='NachfrageErstellung'>
    <wsdl:operation name='init' parameterOrder='p0'>
    <wsdl:input message='tns:NachfrageErstellung_init_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_init_Response'/>
    </wsdl:operation>
    <wsdl:operation name='destroy'>
    <wsdl:input message='tns:NachfrageErstellung_destroy_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_destroy_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleUeberweisungsnachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleUeberweisungsnachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleUeberweisungsnachfrage_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleLastschriftnachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleLastschriftnachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleLastschriftnachfrage_Response'/>
    </wsdl:operation>
    <wsdl:operation name='erstelleSchecknachfrage' parameterOrder='p0 p1'>
    <wsdl:input message='tns:NachfrageErstellung_erstelleSchecknachfrage_1_Request'/>
    <wsdl:output message='tns:NachfrageErstellung_erstelleSchecknachfrage_Response'/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name='NachfrageErstellung' type='tns:NachfrageErstellung'>
    <soap:binding transport='http://schemas.xmlsoap.org/soap/http' style='rpc'/>
    <wsdl:operation name='init'>
    <map:java-operation name='init' signature='KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#init#KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#init#KExvcmcvaWRvb3gvd2Vic2VydmljZS9zZXJ2ZXIvV2ViU2VydmljZUNvbnRleHQ7KVY='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='destroy'>
    <map:java-operation name='destroy' signature='KClW'/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#destroy#KClW'/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#destroy#KClW'/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleUeberweisungsnachfrage'>
    <map:java-operation name='erstelleUeberweisungsnachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleUeberweisungsnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleUeberweisungsnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2UvZXJzdGVsbGVuL1VlYmVyd2Vpc3VuZ3NuYWNoZnJhZ2VFcnN0ZWxsdW5nc2Zvcm11bGFyOylMZGUvYmFua3ZlcmxhZy9pcmVjaGVyY2hlL2J1c2luZXNzL3NoYXJlZC9iMmIvZ2VuZXJhdGVkL25hY2hmcmFnZS9jb21tb24vTmFjaGZyYWdlRXJzdGVsbHVuZ1Jlc3VsdDs='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleLastschriftnachfrage'>
    <map:java-operation name='erstelleLastschriftnachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleLastschriftnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleLastschriftnachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2xhc3RzY2hyaWZ0bmFjaGZyYWdlL2Vyc3RlbGxlbi9MYXN0c2NocmlmdG5hY2hmcmFnZUVyc3RlbGx1bmdzZm9ybXVsYXI7KUxkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL2NvbW1vbi9OYWNoZnJhZ2VFcnN0ZWxsdW5nUmVzdWx0Ow=='/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name='erstelleSchecknachfrage'>
    <map:java-operation name='erstelleSchecknachfrage' signature='KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    <soap:operation soapAction='' style='rpc'/>
    <wsdl:input>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleSchecknachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use='literal' namespace='http://systinet.com/wsdl/de/bankverlag/irecherche/business/shared/b2b/services/waspinternal/NachfrageErstellung#erstelleSchecknachfrage#KExkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvY29tbW9uL1VzZXJDb250ZXh0O0xkZS9iYW5rdmVybGFnL2lyZWNoZXJjaGUvYnVzaW5lc3Mvc2hhcmVkL2IyYi9nZW5lcmF0ZWQvbmFjaGZyYWdlL3NjaGVja25hY2hmcmFnZS9lcnN0ZWxsZW4vU2NoZWNrbmFjaGZyYWdlRXJzdGVsbHVuZ3Nmb3JtdWxhcjspTGRlL2Jhbmt2ZXJsYWcvaXJlY2hlcmNoZS9idXNpbmVzcy9zaGFyZWQvYjJiL2dlbmVyYXRlZC9uYWNoZnJhZ2UvY29tbW9uL05hY2hmcmFnZUVyc3RlbGx1bmdSZXN1bHQ7'/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name='JavaService'>
    <wsdl:port name='NachfrageErstellung' binding='tns:NachfrageErstellung'>
    <soap:address location='urn:unknown-location-uri'/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    One can use Clientgen <binding> element to specify custom binding files.
    Here is a WLS workaround for the problem of unresolved xs:schema references in WSDL
    1. save XMLSchema.xsd and customization.xjb into a local directory called bindingDir,
    2. use the following script to gen clientside artifacts.
    <clientgen>
    <binding dir="bindingDir" includes="*">
    </clientgen>
    Thanks
    Bethune

  • Xrpcc modeler error when trying to generate stub classes from a WSDL

    I'm trying to generate JAX-RPC stub classes (both client and server side) from a WSDL in which one of the message parts references a complexType element defined in the <types> section of the WSDL. Here is my little WSDL document:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="Book_Def"
    targetNamespace="myTypes"
    xmlns:tns="myTypes"
    xmlns:xsd1="myTypes"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNameSpace="myTypes"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Book" type="xsd1:BookType"/>
    <xsd:complexType name="BookType">
    <xsd:all>
    <xsd:element name="authors" type="xsd:string" maxOccurs="10"/>
    <xsd:element name="preface" type="xsd:string"/>
    <xsd:element name="price" type="xsd:float"/>
    </xsd:all>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="runMyPgm">
    <part name="book" type="xsd1:Book"/>
    </message>
    <message name="getPgmResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="MyPgmIFPortType">
    <operation name="runMyPgm">
    <input message="tns:runMyPgm"/>
    <output message="tns:getPgmResponse"/>
    </operation>
    </portType>
    ... Binding stuff
    </port>
    </service>
    </definitions>
    I've tried many combinations of defining my complex type and input message and whenever I run xrpcc using this WSDL as input, I get a Error: Modeler error: invalid entity name: Book (in namespace "myTypes"). Sorry if this is a dumb question, but what am I doing wrong in my <types> or <message> definitions to cause this error? I've had some luck generating stubs when the part types are all simple types, but I've not had any luck with getting a <complexType> definition accepted by xrpcc. Thanks in advance for any help you can offer.

    Yes you can specify type mapping in configuration file and probably this will solve the problem, but I've never tested this approach. Perhaps I'm not advanced user. Actually the serializerFactory and deserializerFactory are a little vague for me:(

  • ADDING xml to the SOAP Message from client

    Hi, does anyone know how to add an xml file to the SOAP message passed by the client to the server?
    I need to send an xml file, I have already tried attachments but they dont meet the purpose. I need to send the xml as part of the soap message in AXIS 1_4.
    I read this somewhere about
    SOAPEnvelope env = message.getSOAPEnvelope;
    env.addBodyElement( new RPCElement("SOAPaccess","webservicename", new
              Object[] { }) );
    FileInputStream file = new FileInputStream( "c:\\abcd.xml");
    SOAPBodyElement aBody = new SOAPBodyElement( file );
    file.close();
    env.addBodyElement( aBody );
              However I am not certain how to go about doing this in axis.
    I have been trying to find something related to this, but havent been able to.
    Please let me know if you know how to add xml file to the body of a SOAP message.

    If anyone is interested...I got this working,
    //b is the byte form of the xml document.
    InputStream is = new ByteArrayInputStream(b);
              Document doc =XMLUtils.newDocument(is);
              SOAPElement me = new MessageElement(doc.getDocumentElement());
              SOAPElement a=message.getSOAPBody().addChildElement(me);
              MessageContext mc=_call.getMessageContext();
              mc.setMessage(message);
              mc.getMessage().getSOAPBody().detachNode();
              SOAPBody sb = (SOAPBody)mc.getMessage().getSOAPPart().getEnvelope().addBody();
              sb.addChild(new MessageElement(doc.getDocumentElement()));
              mc.getMessage().saveChanges();
              System.out.println(mc.getMessage().getSOAPPart().getEnvelope());
              SOAPEnvelope env=(SOAPEnvelope)mc.getMessage().getSOAPPart().getEnvelope();

  • Workshop 10.0.1 - Generating service control from a WSDL file

    Hi!
    I've been familiarising myself with Workshop (version 10.0.1).
    There is a feature that allows the generation of a web service control by right-clicking a WSDL file (Web Services > Generate Service Control).
    This process creates a jar file containing the WSDL's complex type.
    My only problem with this is that the jar uses the namespaces as package names (for example: www.openuri.org will be converted into an org.openuri package).
    I've been searching for a way to customize the package names, but I've been unable to find it. We previously used Axis to generate a web service client, and we ran an Ant task that could map namespaces to packages.
    Would there be a way to achieve this in Workshop?
    Thank you!

    Hi
    This is a known issue and a limitation. Service controls doesn't honor xsdconfig files when generated from wsdl file.
    We have an enhancement request CR307698 pending to address this issue. It looks like it's a big change in code to get this working so it is being looked at in the next release.
    Also, you can call BEA support / create a case in future and request status on this CR anytime.
    Vimala-

  • Web Service -  Error submitting soap message from SoapSonar

    XI Experts,
    I have created a new web service and downloaded the WSDL to SOAPSonar. After loading the WSDL, I try submitting a request to the XI service from SOAPSonar and keep on getting the error below. Do I need to modify the party service OMNI? Steps?
    java.security.AccessControlException: U0097519 has no permission for accessing party service :OMNI
    Please, let me know when you get a chance.
    Thanks
    Chris Hitzke

    XI Experts,
    I have created a new web service in XI and downloaded the WSDL to SOAPSonar. After loading the WSDL, I try submitting a request to the XI service from SOAPSonar and keep on getting the error below. I am running java version 1.5.0_15 on my workstation when submitting the request
    to XI. Do I need to modify the party service OMNI? Steps?
    java.security.AccessControlException: U0097519 has no permission for accessing party service :OMNI
    Please, let me know when you get a chance.
    Fyi... Installing JDK 1.3 instead of JDK 1.5 did resolve the issue. I am able to submit to other XI services from workstations with no issues. I am thinking this related to the system landscape for party service OMNI.
    Thanks
    Chris Hitzke

  • Automatically generate Support Message from E-Mail

    Hello experts!
    I have yet another problem:
    Is there any possibility to create a support message on the basis of en email?
    Or is it possible to migrate e-mails from outlook into a service desk message?
    I hope this information is sufficient. I am thankful for any advice.
    Best regards
    Gerold

    See - I didn't know you could do that with a mailto link! 8)
    But - this is a very unreliable way to send your email, since
    it depends on
    a) the sender having an email client installed, and b) that
    email client
    responding to the mailto link properly.
    And, by using mailto:, you cannot add any interactive
    elements to the
    subject line. Sorry.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "heuning" <[email protected]> wrote in
    message
    news:eh7pd0$m7l$[email protected]..
    > Hi Murray
    >
    > Here is the code for the <form> tag
    >
    > <form
    >
    action="mailto:[email protected];[email protected];[email protected]?subject=XYZandThisIs
    > WhereIWantToSeeDataElement7" method="post"
    enctype="text/plain">
    >
    >
    >

  • How to create a standard SOAP request message from a given WSDL file?

    Hello,
    If I have a WSDL file (either from a .net web service or from the famous Amazon web services), what is the best way to generate a SOAP compliant request message?
    I am having trouble understanding the role of WSDL file in a given web service.
    Question 1:
    If I have a web service that is implemented using jaxm, how do I create/publish a WSDL file that describes the web service?
    Assuming I can generate a wsdl file, can I recreate the SOAP request message from the WSDL file automatically (that matches the original request, which is hand build by me?)
    Question 2:
    If I have a web service that is implemented using JAX-RPC, based on the WSDL file, can I simply generate a valid SOAP message (by some JAVA api) and get the response message directly?
    thanks...

    I have the same question ("Assuming I can generate a wsdl file, can I recreate the SOAP request message from the WSDL file automatically (that matches the original request, which is hand build by me?)")
    Have you already found an answer to this?

  • How To : Call External Webservice from BPEL and pass SOAP Message to the WS

    Hello All-
    Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
    <strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
    <strong>2. Transform the message</strong>
    <strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
    I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
    If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
    Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
    I am new to Webservice integration using BPEL and would really appreciate your help.
    Thanks In Advance
    Regards,
    Dibya

    Hi Dharmendra,
    I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
    I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
    I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
    This is what I see in the TCP monitor, please note the double SOAP env:Body:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
    <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
    <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
    <wsa:Metadata>
    <device xmlns:hl7="urn:hl7-org:v3">
    </device>
    </wsa:Metadata>
    </env:Header>
    <env:Body>
    <RCMR_IN000002NR01>
    </RCMR_IN000002NR01>
    </env:Body>
    </RCMR_IN000002NR01>
    </env:Body>
    </env:Envelope>
    Any help is appreciated.
    Regards,
    Aagaard
    Edited by: Aagaard on Oct 30, 2008 8:59 PM
    Should have mentioned. I am using BPEL 10.1.3.4
    Edited by: Aagaard on Oct 31, 2008 8:43 AM
    I have opened a new thread for this question so as to not confuse the issue more than necessary.
    How many SOAP envelopes do you really need?

  • How to generate doc/lit/wrapped services from existing wsdl?

    Hello,
    I am using workshop 10.1 to generate webservices from existing wsdl files from workshop 8.1. The existings webservices are based on an xmlbean utility project.
    When I generate the webservice from the existing wsdl file it generates automatically services with doc/lit/bare operations. I found in the known issues that this combination is not supported in combination with xmlbeans.
    See: CR283457
    XBeans are not supported as parameters or return type for doc/lit/bare operations.
    Use of Xbeans as a parameter or return type with doc/lit/bare bindings is not supported in operations or callbacks and will result in a failure during deployment.
    Platform: All
    Workaround: Use doc/lit/wrapped for services that use XBeans as parameters or return types.
    The workaround state to use doc/lit/wrapped for services. My questions is how to do that since workshop has all control over the generation of the webservices? ?:|
    Thanks in advance,
    Martijn Baels
    Software Architect
    www.leanapps.com

    Hi Martijn
    If you do generate web service from the wsdl on a 9.2 project, it always uses jax-rpc types and there's no xmlbeans involved.
    If the wsdl is in the schemas folder and the xmlbeans builder is on, then you also have xmlbeans types created by the builder they aren't being used by the web service. You will still have problems, because some of the xmlbeans types may conflict with the jax-rpc types.
    so when we generate webservice from a wsdl it will never use xmlbeans type, even if the xml builder is on, because WLS doesn't support start from wsdl with xmlbeans types.
    Can you please attach the wsdl and the steps so I can replicate and see the issue?
    Thanks
    Vimala

  • How the client stub is generated from the wsdl file ?

    I want to know how the client stub is generated from the wsdl file ?
    how the client accesses the methods in the wsdl fie ?
    thanks alot .

    there are several ways to generate the stubs from a wsdl.
    if you're using jax-ws, there is a netbeans tutorial creating web services. you found this on http://www.netbeans.org/kb/trails/web.html.
    if you're using axis as your framework, i think this would be a nice introduction of it. link : http://www.eli.sdsu.edu/courses/spring03/cs683/notes/AXIS/AXIS.html#Heading4

Maybe you are looking for

  • High-pitched hiss at the beginning of p

    Hi, I recently bought a Zen Micro. Everytime I press the play/pause button (or if a skip forward/backward) to start playing a song, I hear a whine hiss for about seven seconds on the top of the beginning of the song. I noticed also, when I am using o

  • Combination of Data from Two Tables in Report

    Hi, I am currently building a financial report that pulls data from the activity table. Currently, it displays each activity record, i.e. a date field, a transaction source field, transaction source description and transaction amount. I have another

  • Navigation to the webpage was canceled

    "Navigation to the webpage was canceled" I get this error when I try to login to System Monitoring/Administration We have newly configured solman. Can anyone please hint at what the error could be? Thanks Prasad

  • My iPhone refuses to delete music!

    I recently noticed that some songs on some albums had not synced to my phone.  When further syncing didn't fix the problem, I decided to remove all my music and start over.  I have checked and unchecked "Sync Music", I have checked and unchecked "Syn

  • How do I get my cursor back?

    This morning my cursor started acting up. When I place it over anything that you would normally click (hyperlink, button, file in Finder) it changes from an arrow type pointer to the cursor that you get when editing text - something that looks sorta