File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Web Services
Author
How can i get the "type" from a WSDL "message" ?
Yann Emeraud
Greenhorn
Joined: May 03, 2004
Posts: 15
posted
Jun 07, 2004 08:48:00
0
Hi,
I would like to know if there is a method that catch a type from a WSDL part's element attribute directly.
I have the org.apache.axis.Part named "part".
If the related message is like this:
<message name="MyMethod"> <part name="Body" [B]type="s:string"[/B]/> </message>
I know i can write:
QName
typeQN = part.getTypeName();
And i get typeQN = {http://www.w3.org/2000/10/XMLSchema}string
But what to do if the message is like this:
<message name="MyMethod"> <part name="Body" element="s0:GetQuotes"/> [B]<--no type but an element[/B] </message> with <types> <s:schema elementFormDefault="qualified" targetNamespace="http://swanandmokashi.com"> <s:element name="GetQuotes"> [B]<--this element is defined here[/B] <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="QuoteTicker" [B]type="s:string"[/B]/> [B]<-- here is my type[/B] </s:sequence> </s:complexType> </s:element> </s:schema> </types>
Thanks by advance
[ June 07, 2004: Message edited by: Yann Emeraud ]
I agree. Here's the link:
http://aspose.com/file-tools
subject: How can i get the "type" from a WSDL "message" ?
Similar Threads
H
Empty target namespace with axis1.2
Getting null value as response from .net webservice when calling from java client
KSoap2 question, please reply
JAX-WS generated client request missing SOAP body
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter