Reputation: 1399
I'm getting this error when I try to connect to the soap-server and use a method.
[previous:Exception:private] =>
[faultstring] => java.lang.NumberFormatException: Invalid date/time
[faultcode] => soapenv:Server.userException
[detail] => stdClass Object
(
[hostname] => bast.itek.handelsbanken.se
)
Any idea ?
And how can I see what my soap-request looks like?
Here is my code snippet:
Upvotes: 0
Views: 5099
Reputation: 10262
some more details would be nice. How do you connect to the server? You labeled the question as php, yet show a Java exception, I guess it's from the server? You could try to put a proxy between your client and the server to monitor your requests.
Without seeing anything I would guess that some date field is in another format than the server expects. Try to log your requests and compare them to sample requests (if you can find any) and to the WSDL/XSD describing the service.
Edit: I would guess, this line is giving you problems:
$score->request->contract->params->deliveryDate = '2013-02-11'
Try without that line or try adding a time to the date, although it should be ok for a XML date.
And maybe try playing around with the server, figuring out the correct requests with a tool like soapUI until you know what exactly you want.
Upvotes: 1