axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shams jawaid" <sham...@hotmail.com>
Subject RE: Is it possible to access external services?
Date Wed, 15 Aug 2007 16:03:58 GMT
<html><div style='background-color:'><P>ok say i have two web services, one
that generates a random number and one that performs addition of two numbers. how can i connect
those two so that&nbsp; the random numbers are inputted from the random number web service
to the math web service for addition? i was told there is a way to put a client inside a web
service that calls another web service..but im confused about that too. i was also told that
you can use the web service EPR to call a web service from another web service? any advice
or recommendations would be greatly appreciated!<BR><BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid;
MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>"Walker, Jeff" &lt;Jeff.Walker@fmr.com&gt;</I><BR>Reply-To:
<I>axis-user@ws.apache.org</I><BR>To: <I>&lt;axis-user@ws.apache.org&gt;</I><BR>Subject:
<I>RE: Is it possible to access external services?</I><BR>Date: <I>Wed,
15 Aug 2007 11:57:53 -0400</I><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<DIV dir=ltr align=left><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2>I'm confused now, </FONT></SPAN><SPAN class=883174815-15082007><FONT
face=Arial color=#0000ff size=2>not sure what you mean "..use WSDL to connect two web services"
?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2>In Axis, you run the WSDL file&nbsp;through the WSDL2Java class. If you get
all of the arcane arguments right, that will produce a set of classes, which will include
the stub you use on the client side, and the skeleton you use on the service side.&nbsp;
(</FONT></SPAN><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2>I use Axis1.3, but most people have moved to Axis2).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2>In .NET it's the same thing, run the WSDL file through the wsdl.exe program (again,
more arcane arguments to the exe, but Microsoft has a decent explanation of the argments to
wsdl.exe on their website soemwhere). This produces the classes you need in C# (or whatever
language you specified), just like in the Java counterpart example.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=883174815-15082007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=883174815-15082007></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN class=883174815-15082007>If you download the
Axis2 binary zip file, there are a dozen or more examples of using web services to do many
things. Can you be more speciifc in what you're looking for?&nbsp;For&nbsp;</SPAN><SPAN
class=883174815-15082007>a w</SPAN>eb&nbsp;service&nbsp;to&nbsp;use&nbsp;an<SPAN
class=883174815-15082007>other&nbsp;</SPAN>web&nbsp;service,&nbsp;it&nbsp;has&nbsp;to&nbsp;act&nbsp;as&nbsp;a&nbsp;client.&nbsp;<SPAN
class=883174815-15082007>T</SPAN>hen&nbsp;the&nbsp;2nd&nbsp;web&nbsp;serivce&nbsp;acts&nbsp;as&nbsp;a&nbsp;client&nbsp;of&nbsp;the&nbsp;1st&nbsp;serv<SPAN
class=883174815-15082007>ic</SPAN>e.&nbsp;The&nbsp;"two&nbsp;web&nbsp;services"&nbsp;</FONT></FONT></FONT></DIV>
<DIV><FONT size=+0><FONT size=+0><FONT face=Arial><FONT color=#0000ff><FONT
size=2>question&nbsp;has<SPAN class=883174815-15082007> </SPAN></FONT></FONT></FONT></FONT></FONT><FONT
face=Arial color=#0000ff size=2>me&nbsp;confused.</FONT></DIV>
<DIV><FONT size=+0><FONT color=#0000ff><FONT size=2><SPAN class=883174815-15082007></SPAN></FONT></FONT></FONT><SPAN
class=883174815-15082007></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2>-<SPAN class=883174815-15082007>jeff</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> shams jawaid [mailto:shams4d@hotmail.com]
<BR><B>Sent:</B> Wednesday, August 15, 2007 11:42 AM<BR><B>To:</B>
axis-user@ws.apache.org<BR><B>Subject:</B> RE: Is it possible to access
external services?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV class=RTE>
<P>But how do you actually use the WSDL file to connect two web services, as in, do
you know anywhere i can see an example of code?<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid;
MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From:&nbsp;&nbsp;<I>"Walker, Jeff" &lt;Jeff.Walker@fmr.com&gt;</I><BR>Reply-To:&nbsp;&nbsp;<I>axis-user@ws.apache.org</I><BR>To:&nbsp;&nbsp;<I>&lt;axis-user@ws.apache.org&gt;</I><BR>Subject:&nbsp;&nbsp;<I>RE:
Is it possible to access external services?</I><BR>Date:&nbsp;&nbsp;<I>Wed,
15 Aug 2007 10:46:39 -0400</I><BR>&gt;Glenn,<BR>&gt;All you need
is the wsdl file. In that, there will be the url of the<BR>&gt;service.<BR>&gt;Even
if a proxy is used, it will be a good start.<BR>&gt;<BR>&gt;Without the
wsdl, you need to do some investigating. You have to have<BR>&gt;the address (url)
to do anything, but after that, you should try to get<BR>&gt;a list of the services
available. Then try to create a wsdl file using<BR>&gt;the famous &lt;url&gt;?wsdl
address in your browser.<BR>&gt;-jeff<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;-----Original
Message-----<BR>&gt;From: Glenn Williams 
[mailto:glw@iosemantics.com]<BR>&gt;Sent: Wednesday, August 15, 2007 10:33 AM<BR>&gt;To:
axis-user@ws.apache.org<BR>&gt;Subject: Is it possible to access external services?<BR>&gt;<BR>&gt;Hello,<BR>&gt;<BR>&gt;Is
it possible to reference and use external services? I cannot find any<BR>&gt;documentation
to help me with this. I would like to use a service that<BR>&gt;is<BR>&gt;running
externally, and potentially on another server.<BR>&gt;<BR>&gt;Thanks.<BR>&gt;<BR>&gt;glenn<BR>&gt;<BR>&gt;<BR>&gt;---------------------------------------------------------------------<BR>&gt;To
unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org<BR>&gt;For additional commands,
e-mail: axis-user-help@ws.apache.org<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;---------------------------------------------------------------------<BR>&gt;To
unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org<BR>&gt;For 
additional commands, e-mail: axis-user-help@ws.apache.org<BR>&gt;<BR></FONT></BLOCKQUOTE></DIV><BR
clear=all>
<HR>
The next generation of Hotmail is here - <A href="http://g.msn.com/8HMBENUK/2752??PS=47575">Windows
Live Hotmail</A> ---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail:
axis-user-help@ws.apache.org </BLOCKQUOTE><BR></FONT></BLOCKQUOTE></div><br
clear=all><hr>Get Pimped! FREE emoticons and customisation from Windows Live -  <a
href="http://g.msn.com/8HMAENUK/2740??PS=47575" target="_top">Pimp My Live!</a> </html>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message