Author |
Message
|
hornbeam123 |
Posted: Wed Nov 22, 2006 8:33 am Post subject: wbimb httprequest 500 Internal Server Error |
|
|
Centurion
Joined: 01 Nov 2003 Posts: 101
|
I have found a WS, named getJoke, for testing from http://www.bindingpoint.com/service.aspx?skey=6540
The same SOAP which was submitted succesfully through the QuickTry application fails with wbimb.
I have been unable to reach anybody at binding.com or the ws provider by phone or email so I'm stuck for now.
Appreciate any help on this.
See following info:-
Exception TRACE point 1 - Failure on Http Request - 22/11/2006 16:12:10.218
Exception tree
-----------------
WS exception
----------------
'<?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>
<faultcode>soap:Server</faultcode>
<faultstring>Server was unable to process request. --> The data at the root level is invalid. Line 1, position 1.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>'
HTTP Request response
-----------------------------
(
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 500 Internal Server Error.'
(0x03000000):X-Original-HTTP-Status-Code = 500
(0x03000000):Cache-Control = 'private'
(0x03000000):Connection = 'close'
(0x03000000):Date = 'Wed, 22 Nov 2006 16:15:34 GMT'
(0x03000000):Content-Length = '493'
(0x03000000):Content-Type = 'text/xml; charset=utf-8'
(0x03000000):Server = 'Microsoft-IIS/6.0'
(0x03000000):MicrosoftOfficeWebServer = '5.0_Pub'
(0x03000000):X-Powered-By = 'ASP.NET'
(0x03000000):X-AspNet-Version = '1.1.4322'
)
WS flow - Audit trace point 2 - 22/11/2006 16:12:09.437
HTTP request URL was
---------------------------
(
(0x01000000):Destination = (
(0x01000000):HTTP = (
(0x03000000):RequestURL = '/webservices/getJoke.asmx'
)
)
)
HTTP request HEADER (actually is the Body)
-----------------------------------------------------
(
(0x03000000):Content-Type = 'text/xml;charset=utf-8'
(0x03000000):SOAPAction = 'http://interpressfact.net/webservices/getJoke'
(0x03000000):Host = 'www.interpressfact.net'
(0x03000000):Content-Length = '384'
)
SOAP body(Root.XMLNS)
------------------------------
(
(0x05000018): = (
(0x02000000): = ''
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Envelope = (
(0x07000012)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x07000012)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x07000012)xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000):getJoke = (
(0x07000012)xmlns:ns1 = 'http://interpressfact.net/webservices/'
(0x01000000):Category = (
(0x02000000): = '2'
)
)
)
)
)
Message ROOT
------------------
(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 850
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2006-11-22 16:11:50.060'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'WS_REQUEST.INQ'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 850
(0x03000000):Format = 'MQSTR '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51205042524f4b45522020202020dd23644520000d01'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = 'WS_REPLY.OUTQ '
(0x03000000):ReplyToQMgr = 'PBROKER '
(0x03000000):UserIdentifier = 'Hornbeam123 '
(0x03000000):AccountingToken = X'160105150000008177d9746bd6620443170a32eb03000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'MB\eclipse\jre\bin\javaw.exe'
(0x03000000):PutDate = DATE '2006-11-22'
(0x03000000):PutTime = GMTTIME '16:11:50.060'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000010):XMLNS = (
(0x05000018): = (
(0x02000000): = ''
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Envelope = (
(0x07000012)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x07000012)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x07000012)xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000):getJoke = (
(0x07000012)xmlns:ns1 = 'http://interpressfact.net/webservices/'
(0x01000000):Category = (
(0x02000000): = '2'
)
)
)
)
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):Content-Type = 'text/xml;charset=utf-8'
(0x03000000):SOAPAction = 'http://interpressfact.net/webservices/getJoke'
(0x03000000):Host = 'www.interpressfact.net'
(0x03000000):Content-Length = '384'
)
)
+++++++++++++++++++++++++++++++++++++++++++++++
MQ message presented to HTTPRequest node
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><getJoke xmlns:ns1="http://interpressfact.net/webservices/"><Category>2</Category></getJoke></soapenv:Body></soapenv:Envelope> |
|
Back to top |
|
 |
hornbeam123 |
Posted: Thu Nov 23, 2006 5:43 am Post subject: wbimb httprequest 500 Internal Server Error |
|
|
Centurion
Joined: 01 Nov 2003 Posts: 101
|
Hooray I have a response from a Web Service. Thanks to sabcas.
The ws I'm accessing uses namespaces. I already had domain XMLNS checked on httprequest node but after unchecking Input box and specifying tree InputRoot.XMLNS to point explicitly to the SOAP input a response was finally received.
I have two flows one that in compute node 1 creates the soap and in comp node 2 creates the http request headers. The second version of the flow takes the original message which contains the soap so just has a comp node for the httpreq headers. Haven't retested the latter yet. Expect this should work.
Therefore I think this problem can be closed. |
|
Back to top |
|
 |
hornbeam123 |
Posted: Fri Nov 24, 2006 7:23 am Post subject: [SOLVED] wbimb httprequest 500 Internal Server Error |
|
|
Centurion
Joined: 01 Nov 2003 Posts: 101
|
|
Back to top |
|
 |
psicosisdark |
Posted: Wed Jun 20, 2007 2:25 pm Post subject: Re: [SOLVED] wbimb httprequest 500 Internal Server Error |
|
|
Newbie
Joined: 18 Apr 2007 Posts: 2
|
Hi, I have the same problem...
but When I was put the TAG SOAPACtion the error is
SET OutputRoot.HTTPRequestHeader.SOAPAction='"http://tempuri.org/WS/EM"';
X-Original-HTTP-Status-Line = HTTP/1.1 400 Bad Request
X-Original-HTTP-Status-Code= 400
Can you help me? |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed Jun 20, 2007 10:25 pm Post subject: Re: [SOLVED] wbimb httprequest 500 Internal Server Error |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
psicosisdark wrote: |
Hi, I have the same problem...
but When I was put the TAG SOAPACtion the error is
SET OutputRoot.HTTPRequestHeader.SOAPAction='"http://tempuri.org/WS/EM"';
X-Original-HTTP-Status-Line = HTTP/1.1 400 Bad Request
X-Original-HTTP-Status-Code= 400
Can you help me? |
Bad Request means just Bad Request
Show here what you are sending , HTTP headers and content. _________________ Marcin |
|
Back to top |
|
 |
PieterV |
Posted: Thu Jun 21, 2007 12:41 am Post subject: |
|
|
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
|
1. try with HTTPInputHeader
2. Make sure you are sending all the fields the service expect. |
|
Back to top |
|
 |
mgk |
Posted: Thu Jun 21, 2007 1:14 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Using an HTTPInputHeader will make no difference in this case: The node simply merges all headers from an HTTPInputHeader (if any) with those from an HTTPRequestHeader (if any) (which take priority if two http headers have the same name) along with the four default headers listed in the docs if they are not found during the merge.
In this case, looking at the full input message sent on the wire along with the expected input message on the wire will show you any differences between what you are actually sending, compared with what the service is expecting.
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Jun 21, 2007 1:19 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
PieterV wrote: |
1. try with HTTPInputHeader
2. Make sure you are sending all the fields the service expect. |
I think HTTPRequestHeader is OK here.
Checking your request (headers and content) will help you with this problem. _________________ Marcin |
|
Back to top |
|
 |
|