Hi All, I am new to Remedy and need a pointer to some working Axis Client code that properly authenticates a user against a Remedy Webservice I am getting the dreaded "Server.userException" all the times.
It seems like the wsdl2java ant task is not being able to parse the wsdl properly that ARS is generating, we are using version 7.1 I am not able to change the namespace of the envelope to correct namespace RequestXML: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:urn soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="urn:AuthenticationInfo"> <ns2:userName xmlns:ns2="urn:AC_Case_Handling">user</ns2:userName> <ns3:password xmlns:ns3="urn:AC_Case_Handling">pwd</ns3:password> <ns4:authentication xmlns:ns4="urn:AC_Case_Handling"/> <ns5:locale xmlns:ns5="urn:AC_Case_Handling"/> <ns6:timeZone xmlns:ns6="urn:AC_Case_Handling"/> </ns1:urn> </soapenv:Header> <soapenv:Body> <list_workshop_open_case xmlns="urn:AC_Case_Handling"> <startRecord>0</startRecord> <maxLimit>100</maxLimit> <Country>se</Country> <Dealer_id>40309</Dealer_id> <from_date xsi:type="xsd:dateTime">2010-04-23T14:47:16.297Z</from_date> <to_date xsi:type="xsd:dateTime">2010-04-23T14:47:16.297Z</to_date> </list_workshop_open_case> </soapenv:Body> </soapenv:Envelope> ResponseXML:<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.NullPointerException</faultstring> <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">SESOCO0396</ns1:hostname<http://xml.apache.org/axis/>> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> Axis Error:Server.userException AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:SESOCO0396 java.lang.NullPointerException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) 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.scania.app.tyc.ws.AC_Case_HandlingSoapBindingStub.list_workshop_open_case(AC_Case_HandlingSoapBindingStub.java:2980) at com.scania.app.WsTest.testtyc(WsTest.java:51) at com.scania.app.WsTest.main(WsTest.java:31) Total time:2015 ms _________________________________________________ Peter Grape Websphere portal & content developer SCANIA Infomate AB SAIL, SSP & PUM Technical support and development Phone: +46-8-553 859 12 E-mail:peter.gr...@scania.com<mailto:peter.gr...@scania.com> _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"