Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

axis web service parameters lose their names.

Thread view: 
jeremy - 03 Jul 2007 19:56 GMT
I have written a method that I expose as an axis web service.  The
parameter names in my java code do not get exported correctly to the
wsdl and I don't know why.

The java method syntax looks like:

public void UpdateIt(long lId, bool bGetBooleanFields)
{
}

and the wsdl looks like (snippets):

<wsdl:operation name="UpdateIt" parameterOrder="in0 in1">
 <wsdl:input message="impl:UpdateItRequest" name="UpdateItRequest" /

 <wsdl:output message="impl:UpdateItResponse"
name="UpdateItResponse" />
</wsdl:operation>

<wsdl:message name="UpdateItRequest">
 <wsdl:part name="in0" type="xsd:long" />
 <wsdl:part name="in1" type="xsd:boolean" />
</wsdl:message>
Owen Jacobson - 03 Jul 2007 20:30 GMT
> I have written a method that I expose as an axis web service.  The
> parameter names in my java code do not get exported correctly to the
[quoted text clipped - 20 lines]
>   <wsdl:part name="in1" type="xsd:boolean" />
> </wsdl:message>

If you examine the .class file you'll discover that the method
bytecode does not include names for symbols, including parameters.
You need to annotate the individual method parameters with
@WebParam(name="foo") or use the corresponding XML configuration in
order to control the names in the generated WSDL and web service
invocation mapping.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.