axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "muthana" <muth...@gmx.de>
Subject An Error by Run the StubClient.java in Eclipse
Date Thu, 22 Jun 2006 14:51:13 GMT
Dear Sie,

 

I have got an error when I run the StubClient.java

 

public class StubClient {

      public static void main(String[] args)

      throws ServiceException, RemoteException {

      SimpleService_PortType service =

      new SimpleService_ServiceLocator().getSimpleServiceSOAP();

      System.out.println(service.concat(new ConcatRequest("abc", "123")));

      System.out.println("HAllo");

      }

      } 

 

For the WSDL:

 

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:tns="http://ttdev.com/ss"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SimpleService"

targetNamespace="http://ttdev.com/ss">

<wsdl:types>

<xsd:schema

targetNamespace="http://ttdev.com/ss"

xmlns:tns="http://ttdev.com/ss">

<xsd:element name="concatRequest">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="s1" type="xsd:string"/>

<xsd:element name="s2" type="xsd:string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<wsdl:message name="concatRequest">

<wsdl:part name="concatRequest" element="tns:concatRequest" />

</wsdl:message>

<wsdl:message name="concatResponse">

<wsdl:part name="concatResponse" type="xsd:string" />

</wsdl:message>

<wsdl:portType name="SimpleService">

<wsdl:operation name="concat">

<wsdl:input message="tns:concatRequest" />

<wsdl:output message="tns:concatResponse" />

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="SimpleServiceSOAP" type="tns:SimpleService">

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http" />

<wsdl:operation name="concat">

<soap:operation

soapAction="http://ttdev.com/ss/concat" />

<wsdl:input>

<soap:body parts="concatRequest" use="literal" />

</wsdl:input>

<wsdl:output>

<soap:body parts="concatResponse" use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="SimpleService">

<wsdl:port binding="tns:SimpleServiceSOAP"

name="SimpleServiceSOAP">

<soap:address

location="http://localhost:8080/Axis/services/SimpleServiceSOAP"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

 

 

And here is the error

--------------------------

Exception in thread "main" AxisFault

 faultCode: {http://xml.apache.org/axis/}HTTP

 faultSubcode: 

 faultString: (404)/Axis/services/SimpleServiceSOAP

 faultActor: 

 faultNode: 

 faultDetail: 

      {}:return code:  404

&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.17 - Error
report&lt;/title&gt;&lt;style&gt;&lt;!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP
Status
404 - /Axis/services/SimpleServiceSOAP&lt;/h1&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt;
Status
report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt;
&lt;u&gt;/Axis/services/SimpleServiceSOAP&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&
gt;description&lt;/b&gt; &lt;u&gt;The requested resource
(/Axis/services/SimpleServiceSOAP) is not
available.&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
Tomcat/5.5.17&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

      {http://xml.apache.org/axis/}HttpErrorCode:404

 

(404)/Axis/services/SimpleServiceSOAP

      at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744
)

      at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

      at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)

      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

      at org.apache.axis.client.Call.invoke(Call.java:2767)

      at org.apache.axis.client.Call.invoke(Call.java:2443)

      at org.apache.axis.client.Call.invoke(Call.java:2366)

      at org.apache.axis.client.Call.invoke(Call.java:1812)

      at
com.ttdev.simpleservice.client.SimpleServiceSOAPStub.concat(SimpleServiceSOA
PStub.java:157)

      at com.ttdev.simpleservice.client.StubClient.main(StubClient.java:19)

 

 

Can somebody help to solve this problem?

 

Thanks in advanced

Muthana

 

 


Mime
View raw message