File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes beanmapping tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "beanmapping tag" Watch "beanmapping tag" New topic
Author

beanmapping tag

Chandra Gottipati
Greenhorn

Joined: Sep 13, 2008
Posts: 1
I am writing a java web service using Axis. I have the following method:
public AuthLogStatus[] saveAuthLog(String aUserName, String aPassword, String aVersion, AuthLogInfo[] aAuthLogInfo).

I defined a bean mapping tag in my server-config.wsdd file for AuthLogInfo bean. When I use another beanmapping tag inside the same <service> tag for AuthLogStatus bean and generate the wsdl. I don't see the definition for AuthLogStatus bean in the wsdl, i can only see AuthLogInfo definition.

Here is the snippet from my server-config.wsdd file.

<service name="AuthLogReceiver" provider="java:RPC" style="wrapped" use="literal">
<parameter name="allowedMethods" value="saveAuthLog,getVersion" />
<parameter name="scope" value="request" />
<parameter name="className" value="com.pp.mas.client.service.AuthLogReceiver" />
<namespace>http://www.planetpayment.net</namespace>

<beanMapping
qname="ns:bean"
xmlns:ns="http://bean.pswitch.service.client.mas.pp.com"
languageSpecificType="java:com.pp.mas.client.service.pswitch.bean.AuthLogInfo"

/>
<beanMapping
qname="ns:bean"
xmlns:ns="http://bean.pswitch.service.client.mas.pp.com"
languageSpecificType="java:com.pp.mas.client.service.pswitch.bean.AuthLogStatus"

/>

</service>
Olmo Leon
Greenhorn

Joined: Aug 24, 2009
Posts: 2
Hi,

I'm getting the same problem, did you find a solution?

Thanks in advance

Chandra Gottipati wrote:I am writing a java web service using Axis. I have the following method:
public AuthLogStatus[] saveAuthLog(String aUserName, String aPassword, String aVersion, AuthLogInfo[] aAuthLogInfo).

I defined a bean mapping tag in my server-config.wsdd file for AuthLogInfo bean. When I use another beanmapping tag inside the same <service> tag for AuthLogStatus bean and generate the wsdl. I don't see the definition for AuthLogStatus bean in the wsdl, i can only see AuthLogInfo definition.

Here is the snippet from my server-config.wsdd file.

<service name="AuthLogReceiver" provider="java:RPC" style="wrapped" use="literal">
<parameter name="allowedMethods" value="saveAuthLog,getVersion" />
<parameter name="scope" value="request" />
<parameter name="className" value="com.pp.mas.client.service.AuthLogReceiver" />
<namespace>http://www.planetpayment.net</namespace>

<beanMapping
qname="ns:bean"
xmlns:ns="http://bean.pswitch.service.client.mas.pp.com"
languageSpecificType="java:com.pp.mas.client.service.pswitch.bean.AuthLogInfo"

/>
<beanMapping
qname="ns:bean"
xmlns:ns="http://bean.pswitch.service.client.mas.pp.com"
languageSpecificType="java:com.pp.mas.client.service.pswitch.bean.AuthLogStatus"

/>

</service>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: beanmapping tag