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 » Interaction with Web Services via HTTP Request Error

Post new topic  Reply to topic
 Interaction with Web Services via HTTP Request Error « View previous topic :: View next topic » 
Author Message
EKhalil
PostPosted: Thu Sep 29, 2005 7:11 am    Post subject: Interaction with Web Services via HTTP Request Error Reply with quote

Voyager

Joined: 29 Apr 2003
Posts: 99
Location: Boston, MA

From Event Log on WeB SeRvIcEs Server:

HTTP Message Receive Failure: System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1...

This is my input message to HTTP request + HTTP action header augmentation to overide empty default string

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsa:Action>urn:ADuser:GetUser</wsa:Action>
<wsa:MessageID>uuid:20634d50-2b0e-4d16-a167-8fb9de58evak</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:To>http://csiweb01/aduser/aduser.ashx</wsa:To>
</soap:Header>
<soap:Body>
<UserRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ADuser">
<sAMAccountName xmlns="">EvaK999</sAMAccountName>
</UserRequest>
</soap:Body>
</soap:Envelope>

***

SET OutputRoot.HTTPRequestHeader."SOAPAction" = 'urn:ADuser:GetUser'

Any ideas/hints ???
Back to top
View user's profile Send private message Send e-mail
EKhalil
PostPosted: Thu Oct 06, 2005 8:43 am    Post subject: Reply with quote

Voyager

Joined: 29 Apr 2003
Posts: 99
Location: Boston, MA

In my case the error was caused by misplacement of http header,which caused the truncation of my message. What I was trying to do is to copy the etire msg and overide action header. Well,... that did not work... what did work was:... create the header then recreate the msg pass on to http req node...
Back to top
View user's profile Send private message Send e-mail
EKhalil
PostPosted: Thu Oct 06, 2005 9:26 am    Post subject: Reply with quote

Voyager

Joined: 29 Apr 2003
Posts: 99
Location: Boston, MA

Removed
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Interaction with Web Services via HTTP Request 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.