Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

SOAP Client and Server

by dreamclown (Novice)
on Oct 29, 2008 at 13:56 UTC ( #720228=perlquestion: print w/ replies, xml ) Need Help??
dreamclown has asked for the wisdom of the Perl Monks concerning the following question:

dear all, i have 2 case that realy need your help. but if you only answer 1 ofthose care really thanks fully to you.
First case:
i want to establish the connection with my customer using MM7 ( anybody know? ), the things that i know about
MM7 is Server Client communication with SOAP and HTTP as protocol.
since i new in Perl and SOAP, so i really need your help.

1. the customer send me SOAP XML whit attachment ( plain/text ) to me and this is the example of SOAP envelope :
=======================================================================
POST http://XXX.XXX.XXX.XXX:9999 HTTP/1.1 Host: XXX.XXX.XXX.XXX:9999 customer-id:ABC1234 x-fh-Connection-ID:3 Content-Type:multipart/related; boundary="fh-mms-multipart-boundary-0" +; type="text/xml"; start="<cid-999999000000@5>" <?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/soapenvel +ope. xsd"> <soap-env:Header> <TransactionID soap-env:mustUnderstand="1" xmlns="http://www.firsthop.com/specs/MM7-extended/MM7-extended-1-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.firsthop.com/specs/MM7-extended/MM7- extended-1-3/MM7-extended-1-3.xsd"> fh-transaction-id-12345678909 </TransactionID> </soap-env:Header> <soap-env:Body> <DeliverReq xmlns="http://www.firsthop.com/specs/MM7-extended/MM7-extended-1-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.firsthop.com/specs/MM7-extended/MM7- extended-1-3/MM7-extended-1-3.xsd"> <MM7Version>5.5.0-extended</MM7Version> <LinkedID>routerSMSNode1@cs01nfhq:57999</LinkedID> <Sender><Number>+6283809000XXX</Number></Sender> <Recipients><To><ShortCode>9999</ShortCode></To></Recipients> <TimeStamp>2007-12-26T03:15:46-00:00</TimeStamp> <Content allowAdaptations="true" href="&lt;00005DC71A4C0019@firsthop.c +om>" type="SMS"/> </DeliverReq> </soap-env:Body> </soap-env:Envelope>
====================================================================
and the attachment is "Hello World"?
how can i get the value of "customer-id" "TransactionID" "MM7Version" "LinkedID" "Number" "ShortCode" "TimeStamp"
and the attachment "Hello World".

2. can you explain to me about allowAdaptations="true" and how to replay soap-env:mustUnderstand="1" ?

Second case

Please help me to create simple ( yes, just simple will help me a lot )Server script and client script.

and this is the situation :
1. i need a sample script to deliver SOAP envelop with the attachment a text string like " Hello World ".
2. i need a sample script to print out the envelope and catch the value in the envelope ( header and body ) and in the attachment, and give the response back.

once again i really thanks fully to you if you can answer my problem. right now i still learn the Perl and SOAP. Thx Regards

Comment on SOAP Client and Server
Download Code
Replies are listed 'Best First'.
Re: SOAP Client and Server
by Fletch (Chancellor) on Oct 29, 2008 at 14:34 UTC

    SOAP::Lite makes it very simple to interact with SOAP servers (via HTTP and otherwise) and has pretty good docs. There's also a pretty good book from ORA, Programming Web Services with Perl, which covers SOAP::Lite and has many examples.

    That being said, you should go read How (Not) To Ask A Question. You'll find you get more help if you show what you've attempted so far rather than just spewing out a request for others to do your work for you.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      thx for your advice,
      it's just very new for me in programming world and perl

      i'll continue to learn SOAP::Lite, and please kindly help me
      if i find any difficulty



      Best Regards

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://720228]
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (18)
As of 2015-07-31 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls