WSDL Parser java

View: New views
8 Messages — Rating Filter:   Alert me  

WSDL Parser java

by Stefano Tranquillini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.
in the code of the project there's a class that parse the wsdl? which one?
i need to know all the things inside the wsdl, in particular i'm interested in the name of the operations and smt else.
thanks in advance.


--
Stefano

Re: WSDL Parser java

by Deepal Jayasinghe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is this about Axis2 or Axis1? if it is in Axis2 look at WSDL2AxisService
Builder class.

Thanks,
Deepal
> Hi all.
> in the code of the project there's a class that parse the wsdl? which one?
> i need to know all the things inside the wsdl, in particular i'm
> interested in the name of the operations and smt else.
> thanks in advance.
>
>
> --
> Stefano


--
Thank you!


http://blogs.deepal.org
http://deepal.org


Re: WSDL Parser java

by Stefano Tranquillini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks, i take a look.
but, i can use this class and doing what i want or the license of apache blocks me for somethings i.e. use for business applications?

On Fri, Nov 6, 2009 at 18:20, Deepal jayasinghe <deepalk@...> wrote:
Is this about Axis2 or Axis1? if it is in Axis2 look at WSDL2AxisService
Builder class.

Thanks,
Deepal
> Hi all.
> in the code of the project there's a class that parse the wsdl? which one?
> i need to know all the things inside the wsdl, in particular i'm
> interested in the name of the operations and smt else.
> thanks in advance.
>
>
> --
> Stefano


--
Thank you!


http://blogs.deepal.org
http://deepal.org




--
Stefano

Re: WSDL Parser java

by Stefano Tranquillini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i'm reading and trying the WSDL2AxisServiceBuilder but i'm not able to know the operation name and type.

there's no class that read the wsdl and has method that returns operations name operations parameters and so on?

thanks

On Fri, Nov 6, 2009 at 18:46, Stefano Tranquillini <stefano.tranquillini@...> wrote:
thanks, i take a look.
but, i can use this class and doing what i want or the license of apache blocks me for somethings i.e. use for business applications?


On Fri, Nov 6, 2009 at 18:20, Deepal jayasinghe <deepalk@...> wrote:
Is this about Axis2 or Axis1? if it is in Axis2 look at WSDL2AxisService
Builder class.

Thanks,
Deepal
> Hi all.
> in the code of the project there's a class that parse the wsdl? which one?
> i need to know all the things inside the wsdl, in particular i'm
> interested in the name of the operations and smt else.
> thanks in advance.
>
>
> --
> Stefano


--
Thank you!


http://blogs.deepal.org
http://deepal.org




--
Stefano



--
Stefano

Re: WSDL Parser java

by Sagara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you plan to write a class from the scratch to read the WSDL and get
those details you can use JWSDL API [1] with  WSDL4J [2].


[1] - wsdl4j.sourceforge.net/downloads/JSR110_proposed_final_draft.pdf
[2] - http://sourceforge.net/projects/wsdl4j/

Thanks,

On Sat, Nov 7, 2009 at 10:10 AM, Stefano Tranquillini
<stefano.tranquillini@...> wrote:

> i'm reading and trying the WSDL2AxisServiceBuilder but i'm not able to know
> the operation name and type.
>
> there's no class that read the wsdl and has method that returns operations
> name operations parameters and so on?
>
> thanks
>
> On Fri, Nov 6, 2009 at 18:46, Stefano Tranquillini
> <stefano.tranquillini@...> wrote:
>>
>> thanks, i take a look.
>> but, i can use this class and doing what i want or the license of apache
>> blocks me for somethings i.e. use for business applications?
>>
>> On Fri, Nov 6, 2009 at 18:20, Deepal jayasinghe <deepalk@...> wrote:
>>>
>>> Is this about Axis2 or Axis1? if it is in Axis2 look at WSDL2AxisService
>>> Builder class.
>>>
>>> Thanks,
>>> Deepal
>>> > Hi all.
>>> > in the code of the project there's a class that parse the wsdl? which
>>> > one?
>>> > i need to know all the things inside the wsdl, in particular i'm
>>> > interested in the name of the operations and smt else.
>>> > thanks in advance.
>>> >
>>> >
>>> > --
>>> > Stefano
>>>
>>>
>>> --
>>> Thank you!
>>>
>>>
>>> http://blogs.deepal.org
>>> http://deepal.org
>>>
>>
>>
>>
>> --
>> Stefano
>
>
>
> --
> Stefano
>



--
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Re: WSDL Parser java

by Stefano Tranquillini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i found that there's already smt done in java library:
javax.wsdl.xml.WSDLReader

On Sat, Nov 7, 2009 at 16:31, Sagara Gunathunga <sagara.gunathunga@...> wrote:
If you plan to write a class from the scratch to read the WSDL and get
those details you can use JWSDL API [1] with  WSDL4J [2].


[1] - wsdl4j.sourceforge.net/downloads/JSR110_proposed_final_draft.pdf
[2] - http://sourceforge.net/projects/wsdl4j/

Thanks,

On Sat, Nov 7, 2009 at 10:10 AM, Stefano Tranquillini
<stefano.tranquillini@...> wrote:
> i'm reading and trying the WSDL2AxisServiceBuilder but i'm not able to know
> the operation name and type.
>
> there's no class that read the wsdl and has method that returns operations
> name operations parameters and so on?
>
> thanks
>
> On Fri, Nov 6, 2009 at 18:46, Stefano Tranquillini
> <stefano.tranquillini@...> wrote:
>>
>> thanks, i take a look.
>> but, i can use this class and doing what i want or the license of apache
>> blocks me for somethings i.e. use for business applications?
>>
>> On Fri, Nov 6, 2009 at 18:20, Deepal jayasinghe <deepalk@...> wrote:
>>>
>>> Is this about Axis2 or Axis1? if it is in Axis2 look at WSDL2AxisService
>>> Builder class.
>>>
>>> Thanks,
>>> Deepal
>>> > Hi all.
>>> > in the code of the project there's a class that parse the wsdl? which
>>> > one?
>>> > i need to know all the things inside the wsdl, in particular i'm
>>> > interested in the name of the operations and smt else.
>>> > thanks in advance.
>>> >
>>> >
>>> > --
>>> > Stefano
>>>
>>>
>>> --
>>> Thank you!
>>>
>>>
>>> http://blogs.deepal.org
>>> http://deepal.org
>>>
>>
>>
>>
>> --
>> Stefano
>
>
>
> --
> Stefano
>



--
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/



--
Stefano

Re: WSDL Parser java

by Stefano Tranquillini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i'm using now wsdl4j.
also axis2 used wsdl4j, but:
how can i read the xsd inside the wsdl?
i'm able to read all the informations, but not the types of the
message, i will explain better:

a snippet of a wsdl:

 <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/NewWSDLFile/">
      <xsd:element name="NewOperation">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="in" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="NewOperationResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="out" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="NewOperationRequest">
    <wsdl:part element="tns:NewOperation" name="parameters"/>
  </wsdl:message>
  <wsdl:message name="NewOperationResponse">
    <wsdl:part element="tns:NewOperationResponse" name="parameters"/>
  </wsdl:message>


i'm able to read the message :

SchemaExtensibilityElement ({http://www.w3.org/2001/XMLSchema}schema):
required=null
element=[xsd:schema: null]
Message: name={http://www.example.org/NewWSDLFile/}NewOperationResponse
Part: name=parameters
elementName={http://www.example.org/NewWSDLFile/}NewOperationResponse
Message: name={http://www.example.org/NewWSDLFile/}NewOperationRequest
Part: name=parameters
elementName={http://www.example.org/NewWSDLFile/}NewOperation
PortType: name={http://www.example.org/NewWSDLFile/}NewWSDLFile
Operation: name=NewOperation
style=REQUEST_RESPONSE
Input: name=null
Message: name={http://www.example.org/NewWSDLFile/}NewOperationRequest
Part: name=parameters
elementName={http://www.example.org/NewWSDLFile/}NewOperation
Output: name=null
Message: name={http://www.example.org/NewWSDLFile/}NewOperationResponse
Part: name=parameters
elementName={http://www.example.org/NewWSDLFile/}NewOperationResponse


but i'm not able to read the definition of the content of message like
the lines inside <wsdl:types></wsdl:types>

any hints about that?

thanks all

--
Stefano

Re: WSDL Parser java

by Sagara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

WSDL parsers only support for WSDL content, to read Schema you have to
use a Schema parser try for Apache XmlSchema [1].

[1] - http://ws.apache.org/commons/XmlSchema/

Thanks,

On Wed, Nov 11, 2009 at 3:27 PM, Stefano Tranquillini
<stefano.tranquillini@...> wrote:

> i'm using now wsdl4j.
> also axis2 used wsdl4j, but:
> how can i read the xsd inside the wsdl?
> i'm able to read all the informations, but not the types of the
> message, i will explain better:
>
> a snippet of a wsdl:
>
>  <wsdl:types>
>     <xsd:schema targetNamespace="http://www.example.org/NewWSDLFile/">
>       <xsd:element name="NewOperation">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="in" type="xsd:string"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="NewOperationResponse">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="out" type="xsd:string"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>     </xsd:schema>
>   </wsdl:types>
>   <wsdl:message name="NewOperationRequest">
>     <wsdl:part element="tns:NewOperation" name="parameters"/>
>   </wsdl:message>
>   <wsdl:message name="NewOperationResponse">
>     <wsdl:part element="tns:NewOperationResponse" name="parameters"/>
>   </wsdl:message>
>
>
> i'm able to read the message :
>
> SchemaExtensibilityElement ({http://www.w3.org/2001/XMLSchema}schema):
> required=null
> element=[xsd:schema: null]
> Message: name={http://www.example.org/NewWSDLFile/}NewOperationResponse
> Part: name=parameters
> elementName={http://www.example.org/NewWSDLFile/}NewOperationResponse
> Message: name={http://www.example.org/NewWSDLFile/}NewOperationRequest
> Part: name=parameters
> elementName={http://www.example.org/NewWSDLFile/}NewOperation
> PortType: name={http://www.example.org/NewWSDLFile/}NewWSDLFile
> Operation: name=NewOperation
> style=REQUEST_RESPONSE
> Input: name=null
> Message: name={http://www.example.org/NewWSDLFile/}NewOperationRequest
> Part: name=parameters
> elementName={http://www.example.org/NewWSDLFile/}NewOperation
> Output: name=null
> Message: name={http://www.example.org/NewWSDLFile/}NewOperationResponse
> Part: name=parameters
> elementName={http://www.example.org/NewWSDLFile/}NewOperationResponse
>
>
> but i'm not able to read the definition of the content of message like
> the lines inside <wsdl:types></wsdl:types>
>
> any hints about that?
>
> thanks all
>
> --
> Stefano
>



--
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/