ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » wbimb httprequest 500 Internal Server Error

Post new topic  Reply to topic
 wbimb httprequest 500 Internal Server Error « View previous topic :: View next topic » 
Author Message
hornbeam123
PostPosted: Wed Nov 22, 2006 8:33 am    Post subject: wbimb httprequest 500 Internal Server Error Reply with quote

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. --&gt; 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
View user's profile Send private message
hornbeam123
PostPosted: Thu Nov 23, 2006 5:43 am    Post subject: wbimb httprequest 500 Internal Server Error Reply with quote

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
View user's profile Send private message
hornbeam123
PostPosted: Fri Nov 24, 2006 7:23 am    Post subject: [SOLVED] wbimb httprequest 500 Internal Server Error Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

mark as solved.
Back to top
View user's profile Send private message
psicosisdark
PostPosted: Wed Jun 20, 2007 2:25 pm    Post subject: Re: [SOLVED] wbimb httprequest 500 Internal Server Error Reply with quote

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
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Wed Jun 20, 2007 10:25 pm    Post subject: Re: [SOLVED] wbimb httprequest 500 Internal Server Error Reply with quote

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
View user's profile Send private message Visit poster's website
PieterV
PostPosted: Thu Jun 21, 2007 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Thu Jun 21, 2007 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Jun 21, 2007 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » wbimb httprequest 500 Internal Server Error
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.