|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMB as Web service Client |
« View previous topic :: View next topic » |
Author |
Message
|
venky |
Posted: Wed May 23, 2007 8:02 pm Post subject: WMB as Web service Client |
|
|
 Master
Joined: 08 Jul 2003 Posts: 205
|
Hi,
I am trying to invoke a web service method implemented in .NET.
In my request, I have to send date and time in the following field:
<at:pSinceDateTime>05/23/07 13:42:00</at:pSinceDateTime>. So, when I send a request with this format, the web service method throws the following exception:
"Server was unable to read request. ---> There is an error in XML document (6, 54). ---> The string '05/23/07 13:42:00' is not a valid AllXsd value".
Is there a way that we can specify that the SOAP message is Data time field ? or just sending the message in that format should do ?
Any thoughts ?
Thanks. |
|
Back to top |
|
 |
sambati |
Posted: Thu May 24, 2007 4:56 am Post subject: Server was unable to read request |
|
|
Novice
Joined: 14 Nov 2006 Posts: 19
|
"Server was unable to read request. ---> There is an error in XML document (6, 54). ---> The string '05/23/07 13:42:00' is not a valid AllXsd value".
hi venky,
observe the datetime format in ur XSD or WSDL it might be '05/23/07'T'13:42:00' not '05/23/07 13:42:00' that might be the reason for the failure .
construct the field as below and try it out it might work.
<at:pSinceDateTime>05/23/07'T'13:42:00</at:pSinceDateTime>. |
|
Back to top |
|
 |
venky |
Posted: Thu May 24, 2007 5:37 am Post subject: |
|
|
 Master
Joined: 08 Jul 2003 Posts: 205
|
Thank you, sambati - '2006-03-10T07:42:00Z' worked. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|