On Fri, Sep 2, 2011 at 11:45 PM, srini sudha <srini...@gmail.com> wrote:

> Hi All,
>
> I am stuck with some unique problem.
>
> I need to generate the soap request xml content (like we get in soapUI) to
> call my web service by passing wsdlURL and operationName as parameters.
>
> Right now I am parsing wsdlURL and xml schemas related to that web-service
> and preparing the request.xml. But here I am not able to generate the
> request message properly with the namespace aliases. All the problem that I
> am facing is where to declare the namespace alias and where should not
> declare.
>

Did you look wsdl2java tool?, using this tool we can generate the stub
giving wsdlURL then we can easily use this stub to call service in provide
us to make request message properly

try this
http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients.html#adb
 - wsdl2java
 http://axis.apache.org/axis2/java/core/docs/pojoguide.html#testingpojows
 -  RPCServiceClient


>
> Initially I thought it would be ok if I declare namespace alias for all the
> nodes in request.xml file, but it is not working.
>
>
> Please help me if anybody knows the solution or right direction to go
> forward.
>
> thanks in advance.
>
> Srini
>
>
>
>
> On Fri, Sep 2, 2011 at 2:02 PM, Nandeesh Kaggere 
> <nkagg...@camsbycbs.com>wrote:
>
>>  Hi,****
>>
>> I am making WS calls on a provider service. I see SOAP Request/Response on
>> TCP Mon tool and get a successful response. However it is generating
>> exception (below) in the client stub soon after making service call for all
>> the calls****
>>
>> and response is always null.  Not sure what is causing it. Any help is
>> greatly appreciated.  ****
>>
>> ** **
>>
>> *Client Details:*
>>
>> Axis2 : 1.5.4****
>>
>> Databinding: ADB****
>>
>> Java 1.5.x****
>>
>> ** **
>>
>> ** **
>>
>> org.apache.axis2.addressing.AddressingHelper.getRequestAddressingRequirementParameterValue(Lorg/apache/axis2/context/MessageContext;)Ljava/lang/String;java.lang.NoSuchMethodError:
>> org.apache.axis2.addressing.AddressingHelper.getRequestAddressingRequirementParameterValue(Lorg/apache/axis2/context/MessageContext;)Ljava/lang/String;
>> ****
>>
>>             at
>> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkUsingAddressing(AddressingValidationHandler.java:81)
>> ****
>>
>>             at
>> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:61)
>> ****
>>
>>             at org.apache.axis2.engine.Phase.invoke(Phase.java:318)****
>>
>>             at
>> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)****
>>
>>             at
>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)****
>>
>>             at
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
>> ****
>>
>>             at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
>> ****
>>
>>             at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>> ****
>>
>>             at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>> ****
>>
>> ** **
>>
>> ** **
>>
>> Thanks****
>>
>> NK****
>>
>
>
>
> --
> thanks
> srini
>



-- 
Shameera Rathnayaka
Undergraduate
Department of Computer Science and Engineering
University of Moratuwa.
Sri Lanka.

Reply via email to