A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Web Services
Author
sendind SOAP request
saravana kumar
Ranch Hand
Joined: Jun 25, 2002
Posts: 72
posted
Feb 15, 2007 16:51:00
0
Hi All,
i tried to send SOAP request . my
java
proxy generates the SOAP request as follows
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<p492:getOrderInformation xmlns
492="http://temp.org/DB2WebService/ss/ss-aa-repairs.dadx/WSDL">
<arg0>565656</arg0>
</p492:getOrderInformation>
</soapenv:Body>
</soapenv:Envelope>
instead of
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<p492:getOrderInformation xmlns
492="http://temp.org/DB2WebService/ss/ss-repairs.dadx/WSDL">
<WCLSR>565656</WCLSR>
</p492:getOrderInformation>
</soapenv:Body>
</soapenv:Envelope>
because of this i am getting the follwing error.
Error 400: com.ibm.etools.webservice.rt.dxx.exception.DADXRuntimeException: parameter arg0 out of sequence: WCLSR expected.
here is my client code
Call call = (Call)OrderService.createCall();
call.setTargetEndpointAddress("http://182.130.1.112/www-dev-ws/GcoWebService/ss/ss-repairs.dadx/SOAP");
call.setOperationName(new
QName
("http://182.130.1.112/www-dev-ws/GcoWebService/ss/ss-warranty-repairs.dadx/WSDL","getOrderInformation"));
return responseReturn = (return) call.invoke(new Object[] {new
BigDecimal
(claimNumber)} );
Please help me how can let my client code generate the request correctly ?
thanks
saravana kumar
Ranch Hand
Joined: Jun 25, 2002
Posts: 72
posted
Feb 16, 2007 09:09:00
0
I have solved this issue
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
Feb 16, 2007 17:46:00
0
Thanks Saravana.
Would be useful to other ranchers, if you can share your solution.C
Cheers
Balaji
Spritle Software Blogs
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: sendind SOAP request
Similar Threads
TcpMon in Eclipse
WAS v6.1 + WS-Security
problem with perl web services and java client
Send SOAP Request to wsdl
WebSphere V5.1 Application Server SOAP Response
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter