Hi, I tried AddressBook in beta1, I generated all java files from AddressBook.wsdl by run Wsdl2java, compiled and deployed files for server and client on two different machines without any problem. I can access the server from my brower to have WSDL dump via http://....../services/CCAddressBook?wsdl
When I run the client program for the test, the server responded "The AXIS engine could not find a target service to invoke! targetService is null." I tried to call the server either by "axis/services" or "axis/servlet/AxisServlet" and got the same failure. Any hint or fix to this problem is appreciated, the records from TCPMON and excerption from server-config.wsdd are attached for details. C.C. Liu <<tcpmon.txt>> <<server-config.txt>>
POST /axis_server/servlet/AxisServlet HTTP/1.0 Content-Length: 1270 Host: nhnmdsm01.ny.fw.gs.com Content-Type: text/xml; charset=utf-8 SOAPAction: "" <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:addEntry xmlns:ns1="urn:CCAddressBook"> <name xsi:type="xsd:string">Purdue Boilermaker </name> <address href="#id0"/> </ns1:addEntry> <multiRef id="id0" SOAP-ENC:root="0" xsi:type="ns2:address" xmlns:ns2="urn:CCAddressBook"> <streetNum xsi:type="xsd:int">1</streetNum> <streetName xsi:type="xsd:string">University Drive</streetName> <city xsi:type="xsd:string">west Lafayette</city> <state href="#id1"/> <zip xsi:type="xsd:int">47907</zip> <phoneNumber href="#id2"/> </multiRef> <multiRef id="id1" SOAP-ENC:root="0" xsi:type="ns3:stateType" xmlns:ns3="urn:CCAddressBook">IN </multiRef> <multiRef id="id2" SOAP-ENC:root="0" xsi:type="ns4:phone" xmlns:ns4="urn:CCAddressBook"> <areaCode xsi:type="xsd:int">765</areaCode> <exchange xsi:type="xsd:string">494</exchange> <number xsi:type="xsd:string">4900</number> </multiRef> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ++++++++++++ Response from the server HTTP/1.1 500 Internal Server Error Server: WebLogic 5.1.0 Service Pack 10 07/11/2001 21:04:48 #126882 Content-Length: 1971 Content-Type: text/xml; charset=utf-8 X-WebLogic-Load: 0 X-WebLogic-Cluster-List: 4754590479028780258/-1806289892/6/7999/7999/-1/-1/7999/-1 X-WebLogic-Cluster-Hash: TMeHwZwUTU27nTy5RNoJCeXKqko Connection: Close <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService </faultcode> <faultstring>The AXIS engine could not find a target service to invoke! targetService is null </faultstring> <detail> <ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">The AXIS engine could not find a target service to invoke! targetService is null at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.io.IOException.<init>(Compiled Code) at java.rmi.RemoteException.<init>(RemoteException.java:56) at org.apache.axis.AxisFault.<init>(Unknown Source) at org.apache.axis.server.AxisServer.invoke(Unknown Source) at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380) at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code) at weblogic.kernel.ExecuteThread.run(Compiled Code) </ns2:stackTrace> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
<service name="CCAddressBook" provider="java:RPC"> <parameter name="allowedMethods" value="addEntry getAddressFromName"/> <parameter name="scope" value="Session"/> <parameter name="className" value="myTest.addr_1.CCAddressBookSOAPBindingSkeleton"/> <typeMapping deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns10:stateType" serializer="org.apache.axis.encoding.ser.EnumSerializerFactory" type="java:myTest.addr_1.StateType" xmlns:ns10="urn:AddressTest1"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns11:phone" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:myTest.addr_1.Phone" xmlns:ns11="urn:AddressTest1"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns12:address" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:myTest.addr_1.Address" xmlns:ns12="urn:AddressTest1"/> </service>