Hi,I'm trying to use Messaging API to send SMS through a test account setup by EasyLink for the purpose. Here are things I have done so far:
a. Generated client classes based on WSDL available at http://ws.easylink.com/JobSubmit/2011/01?WSDL.
b. Used a standalone java app to submit a request to http://test2messaging.easylink.com/soap/sync.
The app is generating the following request:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><Request xmlns="http://ws.easylink.com/RequestResponse/2011/01" xmlns:ns2="http://ws.easylink.com/JobSubmit/2011/01"><Authentication><XDDSAuth><RequesterID>****</RequesterID><Password>****</Password></XDDSAuth></Authentication></Request></S:Header><S:Body><ns2:JobSubmitRequest xmlns="http://ws.easylink.com/RequestResponse/2011/01" xmlns:ns2="http://ws.easylink.com/JobSubmit/2011/01"><ns2:DocumentSet/><ns2:Message><ns2:JobOptions><ns2:SmsOptions/></ns2:JobOptions><ns2:Destinations><ns2:Sms><ns2:Phone>**********</ns2:Phone></ns2:Sms></ns2:Destinations><ns2:Reports><ns2:DeliveryReport><ns2:DeliveryReportType>detail</ns2:DeliveryReportType></ns2:DeliveryReport></ns2:Reports><ns2:Contents><ns2:Part><ns2:Document><ns2:DocType>text</ns2:DocType><ns2:DocData format="text">Testing sms through EZLink</ns2:DocData></ns2:Document></ns2:Part></ns2:Contents></ns2:Message></ns2:JobSubmitRequest></S:Body></S:Envelope>
[Request ID, password and phone number values have been intentionally removed].
However, on running the app I'm getting the following error:
javax.xml.ws.soap.SOAPFaultException: Error in parsing
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy31.jobSubmit(Unknown Source)
at SmsSender.main(SmsSender.java:145)
My query is :
a. Does the request being generated contain enough information to be considered a 'proper' request?
b. I'm making the request through a proxy (wihtout the proxy information, the endpoint was not even reachable and was throwing a UnknownHostException earlier). How do I know if the error am getting is not due to the proxy?
Thanks,
Trishul