Running simple soap sample

"Andrew Friebel" <andrewf-+dKjvwzIeH00n/[email protected]> Fri, 2 Nov 2007 15:36:57 +1100
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
------=_NextPart_000_009B_01C81D66.349181C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

                I am new to Web Service Framework, and I am new to using
WSDL documents.  After a suggestion of using a framework, I have =
starting
looking at Apache.  I have decided to start looking at using the =
samples,
but I am having problems running the first one.  The first one that I am
attempting is the simple soap sample.  We need to be dealing with SOAP
services, hence the reason to start with this sample.  When I run it, I =
get
the following error:

=20

=D8  java clients.DynamicInvoker simplesoap/StockquoteSOAP.wsdl getQuote =
IBM

=20

Reading WSDL document from 'simplesoap/StockquoteSOAP.wsdl'

Preparing WSIF dynamic invocation

Exception in thread "main" org.apache.wsif.WSIFException: Unable to find =
an
available port

        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)

        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)

        at clients.DynamicInvoker.invokeMethod(DynamicInvoker.java:220)

        at clients.DynamicInvoker.main(DynamicInvoker.java:150)

=20

I do not understand why it can=92t find an available port.  Is there =
something
that I have not done?

=20

Regards,

Andrew


------=_NextPart_000_009B_01C81D66.349181C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>

<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:204409815;
	mso-list-type:hybrid;
	mso-list-template-ids:1512194066 -1367723602 201916419 201916421 =
201916417 201916419 201916421 201916417 201916419 201916421;}
@list l0:level1
	{mso-level-start-at:0;
	mso-level-number-format:bullet;
	mso-level-text:\F0D8;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Times New Roman";}
@list l0:level2
	{mso-level-tab-stop:72.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-tab-stop:108.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level4
	{mso-level-tab-stop:144.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-tab-stop:180.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-tab-stop:216.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level7
	{mso-level-tab-stop:252.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-tab-stop:288.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-tab-stop:324.0pt;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-AU link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Hi,<o:p></o:p></p>

<p =
class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
I am new to Web Service Framework, and I am new to using WSDL =
documents.&nbsp;
After a suggestion of using a framework, I have starting looking at
Apache.&nbsp; I have decided to start looking at using the samples, but =
I am
having problems running the first one.&nbsp; The first one that I am =
attempting
is the simple soap sample.&nbsp; We need to be dealing with SOAP =
services,
hence the reason to start with this sample.&nbsp; When I run it, I get =
the
following error:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoListParagraph style=3D'text-indent:-18.0pt;mso-list:l0 =
level1 lfo2'><![if !supportLists]><span
style=3D'font-family:Wingdings'><span style=3D'mso-list:Ignore'>=D8<span
style=3D'font:7.0pt "Times New Roman"'>&nbsp; =
</span></span></span><![endif]>java
clients.DynamicInvoker simplesoap/StockquoteSOAP.wsdl getQuote =
IBM<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Reading WSDL document from =
'simplesoap/StockquoteSOAP.wsdl'<o:p></o:p></p>

<p class=3DMsoNormal>Preparing WSIF dynamic invocation<o:p></o:p></p>

<p class=3DMsoNormal>Exception in thread &quot;main&quot;
org.apache.wsif.WSIFException: Unable to find an available =
port<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown =
Source)<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown
Source)<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
clients.DynamicInvoker.invokeMethod(DynamicInvoker.java:220)<o:p></o:p></=
p>

<p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
clients.DynamicInvoker.main(DynamicInvoker.java:150)<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>I do not understand why it can&#8217;t find an =
available
port.&nbsp; Is there something that I have not done?<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Regards,<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Andrew<o:p></o:p></span></p>

</div>

</body>

</html>

------=_NextPart_000_009B_01C81D66.349181C0--