Re: [soaplite] Re: Help using SOAP::Lite

Hi, Here is a small sample code. This code was originally in Java and I had to rewrite it in perl. It takes a while to actually understand how SOAP works but

Message 1 of 6
, Jul 3, 2006

0 Attachment

Hi, Here is a small sample code. This code was originally in Java and I had to rewrite it in perl. It takes a while to actually understand how SOAP works but once you do, the language is not a barrier, the perl module is just as efficient and easy as java or C#. It is done exactly like the way you do it in java, only the function names are different. Please refer to www.perl.com for articles on SOAP, they were of immense help to me. Hope this helps.

--- In soaplite@yahoogroup s.com, "Octavian Rasnita" <orasnita@.. .> wrote: > > I need to create a SOAP::Lite client in perl and I don't have specifications for doing this in this language. > > I do have an example in C# though. Can you help me with the smallest code you can that can help me as a sample of making the following program in perl? ************ ********* *****

I'll reword your question to what I think you're really
asking ...

"I don't know how to do this, here's my WSDL and code in C#, do it for me in Perl."

Without "specifications" or it's brethren -- "requirements" you can't build anything efficiently, let alone farm it out to someone. I suppose you mean something else.

I have already read the SOAP::Lite POD documentation and I have already read some pages from soaplite.com site. They helped me to learn a little how to create a SOAP client in perl if I also have the code for the SOAP server which is also in perl.

The problem is that I don't know what I need to use as uri() because I don't know which is the
namespace that I need to use.

I have tried using the same name as the method's name and a few other strings, but without success.

The guys that made the server could give me some examples in C# or Java, but nobody uses perl for this.... and I think I start to understand why...

Teddy

******"We shape the pot but it's the emptiness which holds whatever we want".******

> Hi,
> Here is a small sample code. This code was originally in Java and I
had to rewrite it in perl. It takes a while to actually understand how SOAP
works but once you do, the language is not a barrier, the perl module is
just as efficient and easy as java or C#. It is done exactly like the way
you do it in java, only the function names are different. Please refer to
www.perl.com for articles on SOAP, they were of immense help to me. Hope
this helps.
>

rahed

... www.bvb.ro/Level2#Level2 Part before # is uri and part after is a called method. SOAPAction http header can be set by an on_action method:

> I have seen that the program sends the following HTTP header which is not
> correct:
>
> SOAPAction: "www.bvb.ro/Level2#Level2"
>
> The correct header should be:
>
> SOAPAction: "www.bvb.ro/Level2"
>
> (without #Level2)
>
> What can I do to make it send the correct header?
>

www.bvb.ro/Level2#Level2
Part before # is uri and part after is a called method.

SOAPAction http header can be set by an on_action method:
$soap->on_action(sub {'www.bvb.ro/Level2'});

--
Radek

Octavian Rasnita

Thank you. I have managed to send the correct header but the XML body is not correct. I have also read that I need to make some changes in order to make the

Message 4 of 6
, Jul 4, 2006

0 Attachment

Thank you. I have managed to send the correct header but the XML body is not
correct.
I have also read that I need to make some changes in order to make the
SOAP::Lite client work with a .net server (because it is a .net server
running under IIS), and I have tried changing many things, but the body sent
is very different than the server needs.

Here is the SOAP 1.1 and 1.2 requests and responses that should be used.
Is it possible to do it using SOAP::Lite?
(with any of them)

> "Octavian Rasnita" <orasnita@...> writes:
>
> > I have seen that the program sends the following HTTP header which is
not
> > correct:
> >
> > SOAPAction: "www.bvb.ro/Level2#Level2"
> >
> > The correct header should be:
> >
> > SOAPAction: "www.bvb.ro/Level2"
> >
> > (without #Level2)
> >
> > What can I do to make it send the correct header?
> >
>
>
>
> www.bvb.ro/Level2#Level2
> Part before # is uri and part after is a called method.
>
> SOAPAction http header can be set by an on_action method:
> $soap->on_action(sub {'www.bvb.ro/Level2'});
>
> --
> Radek

Your message has been successfully submitted and would be delivered to recipients shortly.