axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohamed Nufail <nufai...@gmail.com>
Subject Re: How to create a valid request xml content by passing wsdlURL and operationName as parameters
Date Sat, 03 Sep 2011 17:29:59 GMT
Hi Srini,

The links for the SOAP specifications and many other Axis2 related resources
can be found at [1].

[1] http://axis.apache.org/axis2/java/core/refLib.html


Nufail.

On Sat, Sep 3, 2011 at 7:27 PM, srini sudha <srini396@gmail.com> wrote:

> Hi Shameera,
>
> Thank you for your response.
>
>
> I know wsdl2java tool, but here my requirement is different. I think
> probably I didn't explained correctly what I need. I am working with a web
> application which will work just like soapUI-Pro.
>
> 1.  I wrote a xml parser in java which will read wsdl first and gives me
> the list of operations available in that wsdl.
> 2. Now user will choose one of the operation to invoke, then I need to get
> all the imported schemas in wsdl and read all the down line schemas to get
> prepare my request.xml for calling that web-service-operation.
> 3. Now my parser able to generate the required request.xml file, but in
> this xml I have problem with namespace and aliases. The problem is in some
> places soapui generating aliases and some places not like below, i need to
> figure it out what is the logic behind that. some body told me to look at
> the soap message specifications, do you know where can i look for the
> specifications?
>
>
> eg: with alias:     <acc:name>?</acc:name>
>
>       without alias: <name>?</name>
>
>
>
> thanks again for your help Shameera
>
> srini
>
>
>
> On Fri, Sep 2, 2011 at 2:38 PM, Shameera Rathnayaka <
> shameerainfo@gmail.com> wrote:
>
>>
>>
>> On Fri, Sep 2, 2011 at 11:45 PM, srini sudha <srini396@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 <nkaggere@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.
>>
>>
>>
>
>
> --
> thanks
> srini
>

Mime
View raw message