Home > Archive > PERL Beginners > March 2006 > Setting up a SOAP server
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Setting up a SOAP server
|
|
| Bjorn Van Blanckenberg 2006-03-23, 3:58 am |
| I have a problem with setting up an SOAPserver.
I have included how I set up my soapserver.
#!/usr/bin/perl -w
use strict;
use Carp ();
local $SIG{__WARN__} =3D \&Carp::cluck;
$|++;
=09
use SOAP::Transport::HTTP;
=09
my $daemon =3D SOAP::Transport::HTTP::Daemon
-> new (LocalAddr =3D> 'queueitsoapserver.local', LocalPort =3D>=
8001, =20
Reuse =3D> 1)
-> dispatch_to ('Server');
=09
print "Contact SOAP server at ", $daemon->url, "\n";
$daemon->handle;
=09
BEGIN {
package Server;
use base qw(SOAP::Server::Parameters);
=09
(Here comes all the methods)
}
This is the error message I get when requesting the method createPDF
http://200.0.1.153:8001/Server got an error: SOAPAction shall match =20
'uri#method' if present (got 'http://200.0.1.153:8001/=20
Server#createPDF', expected 'http://=20
queueitservices.ppcbpe.loqutus.com#createPDF'
I think there is something with the namespace that is sended by the =20
client.
why do I get a message that the SOAPServer is explecting 'http://=20
queueitservices.ppcbpe.loqutus.com#createPDF'.?
Can I set up a namespace when creating the SOAPServer or overide it?
--
.=B7=80=A8)
=B8.=B7=B4=B8.=B7=B4=A8) =B8.=B7*=A8) =B8.=B7=B4=A8)
(=B8.=B7=B4 Thanks .=B7=B4 .=B7=B4
(_=B8.=B7* (=B8.=B7* (=B8.=B7*=B4=AF`*=B7=80=BB
Bjorn Van Blanckenberg
| |
| Bjorn Van Blanckenberg 2006-03-23, 3:58 am |
| I changed the namespace that the client is sending to "http://=20
200.0.1.153:8001/Server" and now I'am getting this error.
com.ibm.websphere.sca.ServiceRuntimeException: caused by: SOAPAction =20
shall match 'uri#method' if present (got 'createPDF', exp
ected 'http://200.0.1.153:8001/Server#createPDF'
--
.=B7=80=A8)
=B8.=B7=B4=B8.=B7=B4=A8) =B8.=B7*=A8) =B8.=B7=B4=A8)
(=B8.=B7=B4 Thanks .=B7=B4 .=B7=B4
(_=B8.=B7* (=B8.=B7* (=B8.=B7*=B4=AF`*=B7=80=BB
Bjorn Van Blanckenberg
On 23-mrt-06, at 08:42, Bjorn Van Blanckenberg wrote:
> I have a problem with setting up an SOAPserver.
> I have included how I set up my soapserver.
>
> #!/usr/bin/perl -w
> use strict;
> use Carp ();
> local $SIG{__WARN__} =3D \&Carp::cluck;
> $|++;
> =09
> use SOAP::Transport::HTTP;
> =09
> my $daemon =3D SOAP::Transport::HTTP::Daemon
> -> new (LocalAddr =3D> 'queueitsoapserver.local', LocalPort =3D>=
=20
> 8001, Reuse =3D> 1)
> -> dispatch_to ('Server');
> =09
> print "Contact SOAP server at ", $daemon->url, "\n";
> $daemon->handle;
> =09
> BEGIN {
> package Server;
> use base qw(SOAP::Server::Parameters);
> =09
> (Here comes all the methods)
> }
>
> This is the error message I get when requesting the method createPDF
>
> http://200.0.1.153:8001/Server got an error: SOAPAction shall match =20=
> 'uri#method' if present (got 'http://200.0.1.153:8001/=20
> Server#createPDF', expected 'http://=20
> queueitservices.ppcbpe.loqutus.com#createPDF'
>
> I think there is something with the namespace that is sended by the =20=
> client.
> why do I get a message that the SOAPServer is explecting 'http://=20
> queueitservices.ppcbpe.loqutus.com#createPDF'.?
>
> Can I set up a namespace when creating the SOAPServer or overide it?
> --
>
> .=B7=80=A8)
> =B8.=B7=B4=B8.=B7=B4=A8) =B8.=B7*=A8) =B8.=B7=B4=A8)
> (=B8.=B7=B4 Thanks .=B7=B4 .=B7=B4
> (_=B8.=B7* (=B8.=B7* (=B8.=B7*=B4=AF`*=B7=80=BB
>
> Bjorn Van Blanckenberg
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
|
|
|
|
|