Awesome! Thank you, that was really the reason. Who could have thought it's another wsdl-file. "terminal.wsdl" sounds more matching to all Terminals than "Billing.wsdl". Anyhow I am getting this error message now:
faultcode: SOAP-ENV:Server faultstring: Array faultDetail: response: HTTP/1.1 100 Continue HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 SOAPAction: "" Content-Type: text/xml;charset=utf-8 Content-Length: 601 Date: Wed, 01 Dec 2010 22:05:34 GMT Connection: close SOAP-ENV:Server200200No terminal usage foundcom.jasperwireless.ws.ApiExceptioniccid=8988650507770002000
Does that mean, it doesn't find the device with iccid?
"GetTerminalDetails" finds that device.
Maybe you are trying to get the usage for the current month? Please use GetTerminalDetails instead. From the API documentation for that call:Retrieves the terminal usage of a given month (completed billing cycle only) for the terminal identified by ICCID. The return result contains total and billable volumes for data, voice and SMS. To get current month's usage of a terminal, please use GetTerminalDetails call and the MonthToDateUsage fields.If there is no terminal usage found for the given terminal, a SOAP fault with error code 200200 will be returned.
I actually tried to call "GetTerminalUsageDataDetails" in order to store information like 'session_charging_id', 'sessionStartTime', 'duration', 'dataVolume' into our MySQL DB.
But unfortunately, the online documentation says the response doesn't have the 'session_charging_id'. Only the other three.
Nevertheless the first problem is, that I don't find any terminals for the given date. Is this date an interval that just goes back in time and I could give him a date back to 1 year. Or does it have to be the exact date of one billing cycle?
The next problem is, I also try to store all the information of the Sms for a given month. Now the documentation doesn't provide me with any information how the request has to look like. I took that from "GetTerminalUsageDataDetails" and pass him also the "Billing.wsdl" file, but I get this:
faultcode: SOAP-ENV:Server faultstring: Array faultDetail: response: HTTP/1.1 100 Continue HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 SOAPAction: "" Content-Type: text/xml;charset=utf-8 Content-Length: 776 Date: Wed, 01 Dec 2010 23:15:48 GMT Connection: close SOAP-ENV:Server-1Undefinedorg.springframework.ws.soap.saaj.SaajSoapEnvelopeExceptionCould not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
I suppose the request parameters are wrong? Do you have them or can I find them somewhere?
Sorry my bad, the Iccids with the date that I used didn't exist. It is a billing cycle date and not just an interval date.
Everything is working fine now. It seems like also "GetTerminalUsageSmsDetails" shares the same request parameter as "GetTerminalUsageDataDetails".
Thank you very much Terry. You were a great help. I still would be stucked without you.
P.S. I just wonder how to get also the information "session_charging_id", since "GetTerminalUsageDataDetails" doesn't provide me with that information.