I have a web service running on JBoss 4.2.1.GA. I have two different clients consuming
the service. The 1st client is Remedy, a 3rd party service management application. Using
tcpmon, I captured the SOAP document coming across. Here it is:
POST /remedyAbstractService/remedyAbstractService_1_0 HTTP/1.0
| Content-Type: text/xml; charset=utf-8
| Accept: application/soap+xml, application/dime, multipart/related, text/*
| User-Agent: Axis/1.1
| Host: phpoll0905:8666
| Cache-Control: no-cache
| Pragma: no-cache
| SOAPAction: ""
| Content-Length: 1065
|
| <?xml version="1.0" encoding="UTF-8"?>
| <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body><sendTicketRequestToPartner
xmlns="http://MY_COMPANY.com/remedyAbstractService_1_0/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <remedyUserID>MY_USER</remedyUserID>
| <remedyPassword>MY_PASS</remedyPassword>
| <remedyTransactionCode>60</remedyTransactionCode>
| <remedyTPSID>00000002600</remedyTPSID>
| <remedyTicketNumber>ATS01994267</remedyTicketNumber>
| <partner>Initech</partne>
| <partnerTicketNumber>ats11111</partnerTicketNumber>
| <technicalNotes>2/19/2007 4:58:28 PM
| 2/19/2007 4:50:33 PM asdfasdfasdfasdf 2/17/2006 3:15:24 PM iswebsvc tech notes
| </technicalNotes>
| <closedCode>my closed code</closedCode>
| <resolvedBy>guy who fixed it</resolvedBy>
| <solution>my solution</solution>
| </sendTicketRequestToPartner> </soapenv:Body>
| </soapenv:Envelope>
With this request, all of the parameters of the web service are null. The client calls the
web service successfully, but the parms are always null, even though values are being
specified for each field, as you can see in the document above.
I've also created a standard .NET client to consume the same service. When running it,
the values from the client do reach the web service. The request SOAP document looks like
this:
| POST /remedyAbstractService/remedyAbstractService_1_0 HTTP/1.1
| User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.2407)
| Content-Type: text/xml; charset=utf-8
| SOAPAction: ""
| Content-Length: 1014
| Expect: 100-continue
| Connection: Keep-Alive
| Host: phpoll0905:8666
|
| <?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&g...
xmlns="http://MY_COMPANY.com/remedyAbstractService_1_0/types"&g...
xmlns="">MY_USER</remedyUserID><remedyPassword
xmlns="">MY_PASS</remedyPassword><remedyTransactionCode
xmlns="">60</remedyTransactionCode><remedyTPSID
xmlns="">00000002600</remedyTPSID><remedyTicketNumber
xmlns="">ATS01994267</remedyTicketNumber><partner
xmlns="">Initech</partner><partnerTicketNumber
xmlns="">ats11111</partnerTicketNumber><technicalNotes
xmlns="">2/19/2007 4:58:28 PM 2/19/2007 4:50:33 PM asdfasdfasdfasdf
2/17/2006 3:15:24 PM iswebsvc tech notes</technicalNotes><closedCode
xmlns="">my closed code</closedCode><resolvedBy
xmlns="">guy who fixed it</resolvedBy><solution
xmlns="">my
solution</solution></sendTicketRequestToPartner></soap:Body></soap:Envelope>
Why does the 2nd document work, yet the 1st one does not?
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092615#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...