I'm trying to use a vendor supplied WSDL file to generate a mock server
to help test our client code [pending the vendor completing their
server]

Is there a _simple_ step by step guide for setting up an Axis based
client and server, based on WSDL? [one updated for recent versions of
both Axis and Java??]

Development environment Ant [command prompt] or Eclipse 3.0, WinXP, JDK
1.5, Tomcat 5.0.28, Axis 1.2RC1

Target environment [SunOS 5.8, JDK 1.3_07 [with jsse], ATG Dynamo]

I was able to integrate a test environment with Dynamo, that would act
as a SOAP client. On my local workstation, I cannot get a simple client
& server to communicate - the Client exceptions out before calling the
server.

I can post source code, the WSDL file & my ant build script.

I've noticed that the stack trace dumped at the console does not
resemble the state reported by the debugger - not certain who to
believe. [have to see how to coerce program state information out of
Eclipse]


Transaction execution failed : java.lang.NumberFormatException: null
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.NumberFormatException: null
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}hostname:DLevitt

java.lang.NumberFormatException: null
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1077)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEnd
Element(XMLNSDocumentScannerImpl.java:713)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:16
85)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstan
dChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2720)
at org.apache.axis.client.Call.invoke(Call.java:2396)
at org.apache.axis.client.Call.invoke(Call.java:2319)
at org.apache.axis.client.Call.invoke(Call.java:1776)
at
com.experian.realtime.services.tigerservice.TigerServiceSoapBindingStub.
validate(TigerServiceSoapBindingStub.java:165)
at com.bookspan.test.soap.SoapTester.main(SoapTester.java:102)

It may work in practice, but does it work in theory? 

Reply via email to