You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Bob Henderson <la...@yahoo.com> on 2000/10/24 23:09:13 UTC
Newbie Question: namespaces on methods
Please forgive this newbie question.
I can't locate this anywhere in archives or sample
code.
Using the Call Class, how does one specify a different
namespace for a method?
Does this require a re-compile? I would like to
specify my own namespaces for methods rather than the
ns1 that automatically comes up.
My functions are simply:
Call call = new Call();
call.setSOAPMappingRegistry(smr);
call.setTargetObjectURI("urn:myService");
call.setMethodName("myMethod");
call.setEncodingStyleURI(encodingStyleURI);
Vector params = new Vector();
params.addElement(new Parameter("myParam",
String.class,
"test", null));
call.setParams(params);
Shouldn't I be able to specify the namespace for this
method somewhere here?
I would like the namespace to also have a URI
associated with it like the ns1 does when it
automatically appears.
Please help me.
Thanks,
Bob
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
Re: Newbie Question: namespaces on methods
Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
The client API is actually a bit incorrect - the targetMethodURI
property of "Call" *is* in fact the namespace URI of the method.
So the way to set it to something you want is to set that property
to the value you desire.
Sanjiva.
----- Original Message -----
From: "Bob Henderson" <la...@yahoo.com>
To: <so...@xml.apache.org>
Sent: Tuesday, October 24, 2000 5:09 PM
Subject: Newbie Question: namespaces on methods
> Please forgive this newbie question.
>
> I can't locate this anywhere in archives or sample
> code.
>
> Using the Call Class, how does one specify a different
> namespace for a method?
>
> Does this require a re-compile? I would like to
> specify my own namespaces for methods rather than the
> ns1 that automatically comes up.
>
> My functions are simply:
>
> Call call = new Call();
> call.setSOAPMappingRegistry(smr);
> call.setTargetObjectURI("urn:myService");
> call.setMethodName("myMethod");
> call.setEncodingStyleURI(encodingStyleURI);
>
> Vector params = new Vector();
> params.addElement(new Parameter("myParam",
> String.class,
> "test", null));
> call.setParams(params);
>
> Shouldn't I be able to specify the namespace for this
> method somewhere here?
>
> I would like the namespace to also have a URI
> associated with it like the ns1 does when it
> automatically appears.
>
> Please help me.
>
> Thanks,
> Bob
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.com/
Re: Newbie Question: namespaces on methods
Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
The client API is actually a bit incorrect - the targetMethodURI
property of "Call" *is* in fact the namespace URI of the method.
So the way to set it to something you want is to set that property
to the value you desire.
Sanjiva.
----- Original Message -----
From: "Bob Henderson" <la...@yahoo.com>
To: <so...@xml.apache.org>
Sent: Tuesday, October 24, 2000 5:09 PM
Subject: Newbie Question: namespaces on methods
> Please forgive this newbie question.
>
> I can't locate this anywhere in archives or sample
> code.
>
> Using the Call Class, how does one specify a different
> namespace for a method?
>
> Does this require a re-compile? I would like to
> specify my own namespaces for methods rather than the
> ns1 that automatically comes up.
>
> My functions are simply:
>
> Call call = new Call();
> call.setSOAPMappingRegistry(smr);
> call.setTargetObjectURI("urn:myService");
> call.setMethodName("myMethod");
> call.setEncodingStyleURI(encodingStyleURI);
>
> Vector params = new Vector();
> params.addElement(new Parameter("myParam",
> String.class,
> "test", null));
> call.setParams(params);
>
> Shouldn't I be able to specify the namespace for this
> method somewhere here?
>
> I would like the namespace to also have a URI
> associated with it like the ns1 does when it
> automatically appears.
>
> Please help me.
>
> Thanks,
> Bob
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.com/