Leslie,

One recommendation: Don't try to expose a Vector (or any other
collection type) through your interface. Convert your Vector into an
array, and it will work a lot better. .NET will have a problem dealing
with all the ArrayOf_xsd_anyType types you have.

Axis automatically generates a bunch of namespaces to define the
bizarre types it needs to map collections to xsd types. If you don't
use collections, you won't get all these additional namespaces.

Anne

On 7/18/05, Leslie Tighe <[EMAIL PROTECTED]> wrote:
>  
> Thanks, but I do have a few questions on name spaces in the wsdl files 
>   
>  
> Attached in my AuthLogin.wsdd file. It has namespaces defined as: 
>   
>  
> 
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"; 
> 
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
> 
> <service name="AuthLogin" provider="java:RPC" style="wrapped" use="literal" 
> 
> xmlns:ns="urn:AuthLogin"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";> 
>   
> I am running axis.war in WebSphere 6. 
> I used the above AuthLogin.wsdd with the AdminClient from a DOS window to
> modifiy the server-config file in axis. Then from the axis.war application,
> I created the wsdl file with: 
>   
> http://localhost:9082/axis/services/AuthLogin?wsdl 
>   
> The generated wsdl file, has namespaces which someone from the dot net group
> pointed out is strange. But what I am unable to figure out is why some of
> these namespaces such as: 
> http://xml.apache.org/xml-soap is in my wsdl file because they are not in my
> wsdd file namespace.ac 
>   
> I also see that in the wsdl, some namespaces are backwards e.g. 
>  
> 
> xmlns:tns2=http://security.ws.diamelle 
> 
> instead of diamelle.ws.security 
> 
> I then tried to use the java2wsdl tool to create the wsdl file, but am
> confused on how the bean mapping and type mapping which we specified in the
> wsdd file above is to be specified using this approach? 
> 
> dateTime is nillable in the wsdl file. Is there a way to make them come out
> as not nillable in the wsdl file, or we could just edit the wsdl file? 
> 
> Any help will be much appreciated
> 
> 
> Simon Fell <[EMAIL PROTECTED]> wrote: 
>  
>  
> almost certainly the problem is that the namespace of the elements in the
> response message don't match the namespace identified by the WSDL. 
>   
> Cheers 
> Simon
>  
>  ________________________________
>  From: Leslie Tighe [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 18, 2005 10:50 AM
> To: axis-user@ws.apache.org; Anne Thomas Manes
> Subject: Re: Axis 1.2.1 to .NET Interoperability Question
> 
>  
>  
> Hi Anne, 
>   
> On the .NET side, when I try to consume a complex object, all the attributes
> in that object are empty.  For example, if try to call the getLogin() method
> which returns WSLogin, I get an object with nothing in it. However, if I
> call the methods from the browser, its pulling the correct data so I am
> thinking that there is problem in they way that I have things set for .NET. 
>   
> Any suggestions on what the problem maybe? 
>   
> Thanks 
> Leslie 
> 
> 
> Anne Thomas Manes <[EMAIL PROTECTED]> wrote: 
> What problems are you experiencing?
> 
> On 7/18/05, Leslie Tighe wrote:
> > 
> > Hello, 
> > 
> > 
> > I have webservice created with Axis 1.2.1 and that I am trying to
> consuming
> > in .NET (VB) using the Microsoft provided tools. While I am able to
> consume
> > methods on the service that return simple type, I cannot consume methods
> > that return complex objects. I have tried experimenting, with this, but am
> > at a bit of loss on where the problem lies. When I call the services from
> a
> > browser, I do get back the response that contains valid data. Any help on
> > this would be greatly appreciated. I have attached supporting files. For
> > the purpose of an example, I am using the getLogin method. 
> > 
> > Thanks in advance. 
> > Leslie
> > 
> > ________________________________
> > Start your day with Yahoo! - make it your home page 
> > 
> > 
> >
>  
> 
>  ________________________________
>  Start your day with Yahoo! - make it your home page 
> 
> 
> 
>  ________________________________
>  Start your day with Yahoo! - make it your home page 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/";
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>         <service name="AuthLogin" provider="java:RPC" style="wrapped"
> use="literal"
>         xmlns:ns="urn:AuthLogin"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>                 <parameter name="className"
> value="diamelle.ws.security.AuthLogin"/>
>                 <parameter name="allowedMethods" value="addLogin
> autoResetPassword getLogin getAllLogins removeLogin updateLogin getUserId
> getPrincipals authenticate authenticateToken encrypt decrypt logout"/>
>                 <beanMapping qname="ns:SSOSubject"
> type="java:diamelle.security.auth.SSOSubject"/>
>                 <beanMapping qname="ns:WSLoginValue"
> type="java:diamelle.ws.security.WSLoginValue"/>
>                 <beanMapping qname="ns:LoginValue"
> type="java:diamelle.security.auth.LoginValue"/>
>                 <beanMapping qname="ns:SSOPrincipal"
> type="java:diamelle.security.auth.SSOPrincipal"/>
>                 <beanMapping qname="ns:RoleValue"
> type="java:diamelle.security.auth.RoleValue"/>
>                 <beanMapping qname="ns:EntitlementValue"
> type="java:diamelle.security.auth.EntitlementValue"/>
>                 <beanMapping qname="ns:MenuData"
> type="java:diamelle.ebc.navigator.MenuData"/>
>                 <typeMapping qname="ns:ArrayOfMenuData"
> type="java:diamelle.ebc.navigator.MenuData[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"/>
>                 <typeMapping qname="ns:ArrayOfSSOPrincipal"
> type="java:diamelle.security.auth.SSOPrincipal[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"/>
>                 <typeMapping qname="ns:ArrayOfString"
> type="java:java.lang.String[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"/>
>                 <typeMapping qname="ns:ArrayOfRoleValue"
> type="java:diamelle.security.auth.RoleValue[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"/>
>                 <typeMapping
> qname="ns:ArrayOfEntitlementValue"
> type="java:diamelle.security.auth.EntitlementValue[]"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"/>
>                 <operation name="authenticate" qname="ns:authenticate"
> returnType="ns:SSOSubject"
> returnQName="ns:authenticateResponse">
>                         <parameter name="serviceId" type="xsd:string"/>
>                         <parameter name="login" type="xsd:string"/>
>                         <parameter name="password" type="xsd:string"/>
>                 </operation>
>                 <operation name="getUserId" qname="ns:getUserId"
> returnType="xsd:string" returnQName="ns:getUserIdResponse">
>                         <parameter name="serviceId" type="xsd:string"/>
>                         <parameter name="login" type="xsd:string"/>
>                         <parameter name="password" type="xsd:string"/>
>                 </operation>
>                 <operation name="autoResetPassword"
> qname="ns:autoResetPassword" returnType="xsd:string"
> returnQName="ns:autoResetPasswordResponse">
>                         <parameter name="serviceId" type="xsd:string"/>
>                         <parameter name="login" type="xsd:string"/>
>                 </operation>
>                 <operation name="getLogin"
>                 qname="ns:getLogin"
>                 returnType="ns:WSLoginValue"
>                 returnQName="ns:getLoginResponse">
>                         <parameter name="serviceId" type="xsd:string"/>
>                         <parameter name="login" type="xsd:string"/>
>                 </operation>
>                 <operation name="removeLogin" qname="ns:removeLogin"
> returnQName="ns:removeLoginResponse">
>                         <parameter name="serviceId" type="xsd:string"/>
>                         <parameter name="loginId" type="xsd:string"/>
>                 </operation>
>                 <operation name="getAllLogins" qname="ns:getAllLogins"
> returnType="ns:ArrayOfSSOPrincipal"
> returnQName="ns:getAllLoginsResponse">
>                         <parameter name="userId" type="tns:string"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>                 </operation>
>                 <operation name="getPrincipals" qname="ns:getPrincipals"
> returnType="ns:ArrayOfSSOPrincipal"
> returnQName="ns:getPrincipalsReturn">
>                         <parameter name="userId" type="tns:string"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>                 </operation>
>         </service>
> </deployment>
> 
> 
> 
>

Reply via email to