Paolo,

  Thanks for taking an interest in my problem.

  I am fairly certain that my beans are correct, since the java client proxy generated 
by WSDL2Java works just fine.

  Attached are my WSDD (JBoss) and the source for the bean that is being returned by 
the service.  Included below is the relevant source for the webservice object.

  Next, I'll install SP 2 and see what happens ;)

  Thanks again.

  - Matt

From ConceptServerWs (superclass of NavServerWs) ...

  /**
   * This is the method that I am testing.
   */
  public ConceptBean findConceptById(int concept_id)
    throws Exception
  {
    ...
  }

  public ConceptBean findConceptById(int concept_id, AttributeSetDescriptorBean 
descriptor)
    throws Exception
  {
    ...
  }

  public ConceptBean[] findConceptById(int[] concept_id, AttributeSetDescriptorBean 
descriptor)
    throws Exception
  {
    ...
  }

-----Original Message-----
From: Paolo Paganotto [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: Re: .Net Interop: JavaBean -> WSDL -> c# proxy


==>Hi, Matt
is your bean really correct? I mean, do you have a getter and a setter for
every variable member in the bean? This is very important, in fact, even
though .NET doesn't throw any error if you don't specify a getter or a
setter for a variable, you don't get the corresponding type in .NET.
Maybe it is better if you post your bean and the WSDD.
Ah, download the service pack 2 for .NET. if you didn't before; I did, and
lots of eerie errors magically disappeared.

:P:


> Hi again,
>
>   At this point, I am able to get a Bean-based ws to work, but not the one
I am currently working on.  I am fairly certain, at this point, that my wsdd
is correct.  What else could be the problem?  I believe that this issue has
come up before on this list.  Does anyone have any useful ideas on the
subject?
>
>   - Matt Munz ([EMAIL PROTECTED])
>
> -----Original Message-----
> From: Matt Munz
> Sent: Fri 2/21/2003 2:29 PM
> To: [EMAIL PROTECTED]
> Cc:
> Subject: .Net Interop: JavaBean -> WSDL -> c# proxy
>
>
> Hi all,
>
>   I am having trouble using the C# proxy I generated from the WSDL I got
from Axis 1.0 for my JavaBean-based web service.  On the wiki, it is stated
that JavaBeans can be accessed via .Net.  Does anyone have an example of
this?  When I try to access the web service using the generated proxy, the
request works just fine, but the response cannot be parsed correctly by the
proxy, which throws a  System.InvalidOperationException.
>
>   After searching the mailing list, I see that this is perhaps a common
problem, but I am unable to find a solution.  If anyone has an example
laying around, or even any good ideas on where the problem may lie, I'd love
to hear it.
>
>   Thanks,
>    Matt ([EMAIL PROTECTED])
>
>
>


<?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="DtsConceptNavServer2" provider="java:RPC">
  <parameter name="className" value="com.apelon.dts.webservice.NavServerWs"/>
  <parameter name="allowedMethods" value="findConceptById"/>
  <beanMapping qname="apelonDts:attribute" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.AttributeBean"/>
  <beanMapping qname="apelonDts:attributeSetDescriptor" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.AttributeSetDescriptorBean"/>
  <beanMapping qname="apelonDts:concept" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.ConceptBean"/>
  <beanMapping qname="apelonDts:form" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.FormBean"/>
  <beanMapping qname="apelonDts:indexType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.IndexTypeBean"/>
  <beanMapping qname="apelonDts:navContext" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.NavContextBean"/>
  <beanMapping qname="apelonDts:property" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.PropertyBean"/>
  <beanMapping qname="apelonDts:propertyType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.PropertyTypeBean"/>
  <beanMapping qname="apelonDts:role" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.RoleBean"/>
  <beanMapping qname="apelonDts:roleType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.RoleTypeBean"/>
 </service>
 
 <!-- ignore everything past this point 
<service name="DtsConceptNavServer" provider="java:RPC">
  <parameter name="className" value="com.apelon.dts.webservice.NavServerWs"/>
  <parameter name="allowedMethods" value="*"/>
  <beanMapping qname="apelonDts:attribute" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.AttributeBean"/>
  <beanMapping qname="apelonDts:attributeSetDescriptor" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.AttributeSetDescriptorBean"/>
  <beanMapping qname="apelonDts:concept" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.ConceptBean"/>
  <beanMapping qname="apelonDts:form" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.FormBean"/>
  <beanMapping qname="apelonDts:indexType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.IndexTypeBean"/>
  <beanMapping qname="apelonDts:navContext" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.NavContextBean"/>
  <beanMapping qname="apelonDts:property" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.PropertyBean"/>
  <beanMapping qname="apelonDts:propertyType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.PropertyTypeBean"/>
  <beanMapping qname="apelonDts:role" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.RoleBean"/>
  <beanMapping qname="apelonDts:roleType" xmlns:apelonDts="urn:apelon.dts"
             languageSpecificType="java:com.apelon.dts.webservice.RoleTypeBean"/>
 </service>
 -->

  <!-- taken from a bean example 
  <service name="AddFunction1Service" provider="java:RPC">
   <requestFlow>
     <handler type="print"/>
   </requestFlow>
   <parameter name="className" value="com.apelon.skunkworks.complexws.AddFunction1"/>
   <parameter name="allowedMethods" value="*"/>  
   <beanMapping qname="myNS:Complex" xmlns:myNS="urn:BeanService"
               languageSpecificType="java:com.apelon.skunkworks.complexws.Complex"/>
  </service>
   -->

  <!-- modified from a bean example 
  <service name="BadAddFunction1Service" provider="java:RPC">
   <requestFlow>
     <handler type="print"/>
   </requestFlow>
   <parameter name="className" value="com.apelon.skunkworks.complexws.AddFunction1"/>
   <parameter name="allowedMethods" value="*"/>  
   <beanMapping qname="ns:complex" xmlns:ns="apelon.dts"
               languageSpecificType="java:com.apelon.skunkworks.complexws.Complex"/>
  </service>
  -->
  
  <!-- modified from a bean example 
  <service name="GoodAddFunction1Service" provider="java:RPC">
   <parameter name="className" value="com.apelon.skunkworks.complexws.AddFunction1"/>
   <parameter name="allowedMethods" value="*"/>  
   <beanMapping qname="apelonDts:complex" xmlns:apelonDts="urn:apelon.dts"
               languageSpecificType="java:com.apelon.skunkworks.complexws.Complex"/>
  </service>
   -->
</deployment>

Attachment: ConceptBean.java
Description: ConceptBean.java

Attachment: FormBean.java
Description: FormBean.java

Reply via email to