You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sameer Bombatkar <sa...@hotmail.com> on 2003/05/09 11:17:49 UTC

de/serializers for ArrayLists posting again

I am posting my de(serialization) query again with more details ..if someone 
could help me here...
Following is the class method I'm using which returns an ArrayList which I 
want to receive in my .Net setup.

public class AddFunction1 {

public AddFunction1(){}

  public ArrayList searchUsers(String lastName, String firstName)
	      {
	        ArrayList myList = new ArrayList();
	        if(lastName.equals("last") && firstName.equals("first"))
	            myList.add(0, "mg1");
	        else
	            myList.add(0, "mg2");
	        return myList;
        }
}

This is how my deploy.wsdd looks like which deploys the webservice okay in 
my AxisRc2 (in which some fixes have been done for the ArrayLists)

<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="AddFunction1Service" provider="java:RPC">
  <parameter name="className" value="AddFunction1"/>
  <parameter name="allowedMethods" value="*"/>
  <beanMapping qname="myNS:ArrayList" xmlns:myNS="urn:BeanService"  
languageSpecificType="java:java.util.ArrayList"/>
</service>
<transport name="http">
  <requestFlow>
     <handler type="URLMapper"/>
     <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
  </requestFlow>
</transport>
<transport name="local">
  <responseFlow>
   <handler type="java:org.apache.axis.transport.local.LocalResponder"/>
   </responseFlow>
</transport>
</deployment>

But while I've not been able to get this inside my .Net client(Web Service 
Toolkit).Althogh I can see the proxy stubs and skeletons generated in .Net 
and also the ArrayList object which is not null but still it doesn't show 
the correct data within it..
Has someone encountered such problem?


thanks

Sameer.

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


RE: generated dynamic webservice client

Posted by Anne Thomas Manes <an...@manes.net>.
Many industries are developing standard message formats and/or interfaces.
Once these standards have been defined, then dynamic discovery will be more
realistic. Then you will be able to search for a service that implements a
standard <portType> and just bind to it. But without a priori knowledge of
the semantics of the interface, dynamic discovery isn't feasible.

Anne

> -----Original Message-----
> From: Ronny Mailindra [mailto:mailindra@yahoo.com]
> Sent: Friday, May 09, 2003 9:50 AM
> To: axis-user@ws.apache.org
> Subject: RE: generated dynamic webservice client
>
>
> Hai Anne,
> Thanks for the hint. I find also difficult for
> application interpreting the interface(<portType>) and
> the datatype(<message>), especially complex or custom
> datatype.
>
> Regards,
>
> mailindra
> --- Anne Thomas Manes <an...@manes.net> wrote:
> > Mailindra,
> >
> > It's fairly difficult to do dynamic discovery and
> > utilization of a
> > previously unknown Web service. Applications aren't
> > good at dynamically
> > interpreting the semantics of an interface. So most
> > people use UDDI at
> > development time to discover the semantics of the
> > Web service interface (the
> > <portType>). A growing number of companies, though,
> > do use UDDI at runtime
> > to obtain specific binding information. (<binding>
> > and accesspoint).
> >
> > Also, almost no one uses the public UDDI Business
> > Registry to dynamically
> > discover new business partners. People set up
> > private registries -- for
> > internal and established partner integration.
> >
> > Anne
> >
> > > -----Original Message-----
> > > From: Ronny Mailindra [mailto:mailindra@yahoo.com]
> > > Sent: Friday, May 09, 2003 6:14 AM
> > > To: axis-user@ws.apache.org
> > > Subject: generated dynamic webservice client
> > >
> > >
> > > Hai All,
> > > I have questions about generated dynamic web
> > service
> > > client.
> > > Imagine this situation.
> > > a company want to buy products and use web
> > services.
> > > first It search for business, binding and other
> > > related information in the Registry ( eg: UDDI
> > > Registry)
> > > once it found the business, the company will use
> > > binding information( WSDL) to create a web
> > services
> > > client.
> > >
> > > my questions are
> > > 1.Is it feasible to make an application that
> > search
> > > business in the Registry(UDDI) and then
> > > generated the appropriate client web service to
> > bind
> > > to provider and use the service?
> > > 2. How is it in the real world? Do company use
> > > application that automatically generated WS-Client
> > for
> > > business
> > > they found in registry, or still they make
> > WS-Client
> > > manually?
> > >
> > > any thought, idea, link or info? I will appreciate
> > for
> > > any Help.
> > > TIA.
> > >
> > > Kind Regards,
> > >
> > > Mailindra
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo.
> > > http://search.yahoo.com
> > >
> >
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>


RE: generated dynamic webservice client

Posted by Ronny Mailindra <ma...@yahoo.com>.
Hai Anne,
Thanks for the hint. I find also difficult for
application interpreting the interface(<portType>) and
the datatype(<message>), especially complex or custom
datatype.

Regards,

mailindra
--- Anne Thomas Manes <an...@manes.net> wrote:
> Mailindra,
> 
> It's fairly difficult to do dynamic discovery and
> utilization of a
> previously unknown Web service. Applications aren't
> good at dynamically
> interpreting the semantics of an interface. So most
> people use UDDI at
> development time to discover the semantics of the
> Web service interface (the
> <portType>). A growing number of companies, though,
> do use UDDI at runtime
> to obtain specific binding information. (<binding>
> and accesspoint).
> 
> Also, almost no one uses the public UDDI Business
> Registry to dynamically
> discover new business partners. People set up
> private registries -- for
> internal and established partner integration.
> 
> Anne
> 
> > -----Original Message-----
> > From: Ronny Mailindra [mailto:mailindra@yahoo.com]
> > Sent: Friday, May 09, 2003 6:14 AM
> > To: axis-user@ws.apache.org
> > Subject: generated dynamic webservice client
> >
> >
> > Hai All,
> > I have questions about generated dynamic web
> service
> > client.
> > Imagine this situation.
> > a company want to buy products and use web
> services.
> > first It search for business, binding and other
> > related information in the Registry ( eg: UDDI
> > Registry)
> > once it found the business, the company will use
> > binding information( WSDL) to create a web
> services
> > client.
> >
> > my questions are
> > 1.Is it feasible to make an application that
> search
> > business in the Registry(UDDI) and then
> > generated the appropriate client web service to
> bind
> > to provider and use the service?
> > 2. How is it in the real world? Do company use
> > application that automatically generated WS-Client
> for
> > business
> > they found in registry, or still they make
> WS-Client
> > manually?
> >
> > any thought, idea, link or info? I will appreciate
> for
> > any Help.
> > TIA.
> >
> > Kind Regards,
> >
> > Mailindra
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> >
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

RE: generated dynamic webservice client

Posted by Anne Thomas Manes <an...@manes.net>.
Mailindra,

It's fairly difficult to do dynamic discovery and utilization of a
previously unknown Web service. Applications aren't good at dynamically
interpreting the semantics of an interface. So most people use UDDI at
development time to discover the semantics of the Web service interface (the
<portType>). A growing number of companies, though, do use UDDI at runtime
to obtain specific binding information. (<binding> and accesspoint).

Also, almost no one uses the public UDDI Business Registry to dynamically
discover new business partners. People set up private registries -- for
internal and established partner integration.

Anne

> -----Original Message-----
> From: Ronny Mailindra [mailto:mailindra@yahoo.com]
> Sent: Friday, May 09, 2003 6:14 AM
> To: axis-user@ws.apache.org
> Subject: generated dynamic webservice client
>
>
> Hai All,
> I have questions about generated dynamic web service
> client.
> Imagine this situation.
> a company want to buy products and use web services.
> first It search for business, binding and other
> related information in the Registry ( eg: UDDI
> Registry)
> once it found the business, the company will use
> binding information( WSDL) to create a web services
> client.
>
> my questions are
> 1.Is it feasible to make an application that search
> business in the Registry(UDDI) and then
> generated the appropriate client web service to bind
> to provider and use the service?
> 2. How is it in the real world? Do company use
> application that automatically generated WS-Client for
> business
> they found in registry, or still they make WS-Client
> manually?
>
> any thought, idea, link or info? I will appreciate for
> any Help.
> TIA.
>
> Kind Regards,
>
> Mailindra
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>


generated dynamic webservice client

Posted by Ronny Mailindra <ma...@yahoo.com>.
Hai All,
I have questions about generated dynamic web service
client.
Imagine this situation.
a company want to buy products and use web services.
first It search for business, binding and other
related information in the Registry ( eg: UDDI
Registry)
once it found the business, the company will use
binding information( WSDL) to create a web services
client.

my questions are
1.Is it feasible to make an application that search
business in the Registry(UDDI) and then
generated the appropriate client web service to bind
to provider and use the service?
2. How is it in the real world? Do company use
application that automatically generated WS-Client for
business
they found in registry, or still they make WS-Client
manually?

any thought, idea, link or info? I will appreciate for
any Help.
TIA.

Kind Regards,

Mailindra


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com