axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaybytez <jayby...@gmail.com>
Subject Help With Operation Namespace
Date Thu, 10 Jul 2008 20:49:00 GMT

I am reposting this to see if anyone ran into this issue.


jaybytez wrote:
> 
> I create a ServiceClient to call sendReceive, fireAndForget, sendRobust,
> sendRobustNonBlocking and I utilize the method that takes the QName for
> the WSDL Operation as well as the XML Message to send.  It does not matter
> what I set the QName to, I always am able to send a request and receive a
> response back, even if my QName used in the ServiceClient does not match
> the targetNamespace defined in my WSDL.
> 
> After I create the service client, I call a method that contains this
> logic:
> 
>             if(isMockedService()) {
>                 mReply =
> client.sendReceive((OMElement)getRequestWrapper().getRequest());
>             }
>             else {
>                 mReply = client.sendReceive(new
> QName(webMethod.targetNamespace(),
>                             webMethod.operationName()),
> (OMElement)getRequestWrapper().getRequest());
>             }
> 
> The interesting thing is that I can do the following:
> 
>             if(isMockedService()) {
>                 mReply =
> client.sendReceive((OMElement)getRequestWrapper().getRequest());
>             }
>             else {
>                 mReply = client.sendReceive(new QName("bogusNamespace",
>                             "bogusOperation"),
> (OMElement)getRequestWrapper().getRequest());
>             }
> 
> And I can still successfully invoke the operation defined in the WSDL. 
> Shouldn't this error out that the operation name did not exist in the
> WSDL?
> 
> Does this depend on whether I create a ServiceClient with a valid
> serviceName and portName (because right now I set those values to null).
> 
> Thanks -jay
> 

-- 
View this message in context: http://www.nabble.com/ServiceClient-ignores-QName-for-operation-specific-invocation-tp17699113p18391565.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message