Click here to Skip to main content
15,867,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm currently developing API however this is my first time working with this kind of header.

<pre>"POST / HTTP/1.1 Authorization: WSSE realm=""CDP"",profile=""UsernameToken"" : UsernameToken Username=""PartnerID"", PasswordDigest=""u6b6k1L3oBazbVPHfb2fJpQVbOQ="", Nonce=""2013042718341400001"", Created=""2013-04-27T18:34:14Z"" X-NotifyHeader: notify ServiceId=""ServiceID"" LinkId=""LinkID"" TransId=""100001200101110623021721000011"" Content-Type: application/xml; charset=UTF-8
Host: 10.135.178.84:9088 Connection: close Content-Length: 377"


<?xml version="1.0" encoding="utf-8" ?> <ns1:inboundSMSMessageNotification xmlns:ns1="urn:oma:xml:rest:sms:1"> <callbackData>123</callbackData> <inboundSMSMessage> <destinationAddress>AccessCode</destinationAddress> <senderAddress>Subscriber's MIN</senderAddress> <message>Keyword/Message Sent</message> <messageId>600001200401130427105417000121</messageId> </inboundSMSMessage> </ns1:inboundSMSMessageNotification>


thank you

What I have tried:

I'm currently developing API however this is my first time working with this kind of header.

<pre><pre>"POST / HTTP/1.1 Authorization: WSSE realm=""CDP"",profile=""UsernameToken"" : UsernameToken Username=""PartnerID"", PasswordDigest=""u6b6k1L3oBazbVPHfb2fJpQVbOQ="", Nonce=""2013042718341400001"", Created=""2013-04-27T18:34:14Z"" X-NotifyHeader: notify ServiceId=""ServiceID"" LinkId=""LinkID"" TransId=""100001200101110623021721000011"" Content-Type: application/xml; charset=UTF-8
Host: 10.135.178.84:9088 Connection: close Content-Length: 377"


<?xml version="1.0" encoding="utf-8" ?> <ns1:inboundSMSMessageNotification xmlns:ns1="urn:oma:xml:rest:sms:1"> <callbackData>123</callbackData> <inboundSMSMessage> <destinationAddress>AccessCode</destinationAddress> <senderAddress>Subscriber's MIN</senderAddress> <message>Keyword/Message Sent</message> <messageId>600001200401130427105417000121</messageId> </inboundSMSMessage> </ns1:inboundSMSMessageNotification>


thank you
Posted
Comments
Nathan Minier 29-Sep-17 7:47am    
It's an SMS response message, serialized in XML, wrapped in an HTTP POST request.

What is it that you're asking, exactly? There are millions of examples on the interwebs about how to work with HTTP, and millions more about XML.
Member 13438450 1-Oct-17 23:15pm    
What kind of Service do i need to develop for this kind of request?
SOAP or REST?
Nathan Minier 2-Oct-17 7:30am    
Neither. It looks like the C^2 is being run through the header using some sort of custom schema.

Your best bet is to contact the API provider to validate their schema and make sure to coordinate with them to determine what they define as appropriate in terms of accessing their data. They may even have some binaries available to parse out their stuff.
Member 13438450 3-Oct-17 5:49am    
Thank you Nathan :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900