Re: WSDL Parser java

2009-11-11 Thread Sagara Gunathunga
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
 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:
>
>  
>     http://www.example.org/NewWSDLFile/";>
>   
>     
>   
>     
>   
>     
>   
>   
>     
>   
>     
>   
>     
>   
>     
>   
>   
>     
>   
>   
>     
>   
>
>
> 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 
>
> any hints about that?
>
> thanks all
>
> --
> Stefano
>



-- 
Sagara Gunathunga

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


Re: WSDL Parser java

2009-11-11 Thread Stefano Tranquillini
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:

 
    http://www.example.org/NewWSDLFile/";>
  
    
  
    
  
    
  
  
    
  
    
  
    
  
    
  
  
    
  
  
    
  


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 

any hints about that?

thanks all

--
Stefano


Re: WSDL Parser java

2009-11-07 Thread Stefano Tranquillini
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  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
>  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
> >  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 
> 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

2009-11-07 Thread Sagara Gunathunga
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
 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
>  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  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

2009-11-07 Thread Stefano Tranquillini
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.tranquill...@gmail.com> 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  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