More on this. Since I could not get the "echoCustomerOrder" method working with the supplied WSDL file, I switched the WSDL file with another of type rcp-literal. I used the wscompile command as below to generate this new WSDL file.
wscompile -cp ../../output-samples/classes -gen:server -f:wsi config.xml I rebuilt the samples-complexbean.[je]ar and redployed it. CustomerOrder WS now starts working. Here are SOAP message traces for different combinations WSDL file at the server and the client side. The client is a java client where the stub is made with wscompile (using two different types of WSDL files) and uses jwsdp libraries. 1. Server: Document-literal, Client: document-literal REQUEST: | <env:Body> | <ns0:echoCustomerOrder> | <CustomerOrder_1> | <customerID>Acme Inc</customerID> | <orderID>01234</orderID> | </CustomerOrder_1> | </ns0:echoCustomerOrder> | </env:Body> | | RESPONSE: | <soapenv:Body> | <soapenv:Fault> | <faultcode>soapenv:Client</faultcode> | <faultstring>javax.xml.rpc.JAXRPCException: org.xml.sax.SAXException: Invalid element in org.jboss.webservice.complexbean.CustomerOrder - CustomerOrder_1</faultstring> | <detail/> | </soapenv:Fault> | </soapenv:Body> | | 2. Server: rpc-literal, Client: document-literal REQUEST: | <env:Body> | <ns0:echoCustomerOrder> | <CustomerOrder_1> | <customerID>Acme Inc</customerID> | <orderID>01234</orderID> | </CustomerOrder_1> | </ns0:echoCustomerOrder> | </env:Body> | | RESPONSE: | <soapenv:Body> | <ns1:echoCustomerOrderResponse xmlns:ns1="http://org.jboss.webservice/complexbean/types"> | <result> | <customerID>Acme Inc</customerID> | <orderID>01234</orderID> | <positions xsi:nil="1"/> | </result> | </ns1:echoCustomerOrderResponse> | </soapenv:Body> | | 3. Server: rpc-literal, Client: rpc-literal REQUEST: | <env:Body> | <ns0:echoCustomerOrder> | <CustomerOrder_1> | <customerID>Acme Inc</customerID> | <orderID>01234</orderID> | </CustomerOrder_1> | </ns0:echoCustomerOrder> | </env:Body> | | RESPONSE: | <soapenv:Body> | <ns1:echoCustomerOrderResponse xmlns:ns1="http://org.jboss.webservice/complexbean"> | <result> | <customerID>Acme Inc</customerID> | <orderID>01234</orderID> | <positions xsi:nil="1"/> | </result> | </ns1:echoCustomerOrderResponse> | </soapenv:Body> | - Mohammad View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853131#3853131 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853131 ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
