Hello Carey, The header was included in the XML sent to the Mid-Tier but still failed. I tested with a default user in the Mid-Tier config Tool and without. Still the same error. Here is the xml:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s="urn:MMA_SAP_AssetOrderModifyIn"> <soap:Header> <s:AuthenticationInfo> <s:userName>Demo</s:userName> <s:password>xxxxx</s:password> <s:authentication/> <s:locale/> <s:timeZone/> </s:AuthenticationInfo> </soap:Header> <soap:Body> <s:READ_EQUIP_LOC> <s:N_Activo>9099</s:N_Activo> <s:CodigoBarras>9099</s:CodigoBarras> <s:Descripcion_breve>n/a</s:Descripcion_breve> <s:Remitente>Demo</s:Remitente> <s:Requester>Demo</s:Requester> <s:Ubicacion>UB01</s:Ubicacion> </s:READ_EQUIP_LOC> </soap:Body> </soap:Envelope> Here is the WSDL: <?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions targetNamespace="urn:MMA_SAP_AssetOrderModifyIn" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s="urn:MMA_SAP_AssetOrderModifyIn" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <wsdl:types> - <xsd:schema elementFormDefault="qualified" targetNamespace="urn:MMA_SAP_AssetOrderModifyIn"> <xsd:element name="READ_EQUIP_LOC" type="s:CreateInputMap" /> - <xsd:complexType name="CreateInputMap"> - <xsd:sequence> <xsd:element name="N_Activo" type="xsd:string" /> <xsd:element name="CodigoBarras" type="xsd:string" /> <xsd:element name="Descripcion_breve" type="xsd:string" /> <xsd:element name="Remitente" type="xsd:string" /> <xsd:element name="Requester" type="xsd:string" /> <xsd:element name="Ubicacion" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="Asignada_a" type="xsd:string" /> <xsd:attribute name="Estado" type="xsd:string" /> <xsd:attribute name="ReturnCode" type="xsd:string" /> </xsd:complexType> <xsd:element name="READ_EQUIP_LOCResponse" type="s:CreateOutputMap" /> - <xsd:complexType name="CreateOutputMap"> - <xsd:sequence> <xsd:element name="CodigoBarras" type="xsd:string" /> <xsd:element name="ReturnCode" type="xsd:string" /> <xsd:element name="Ubicacion" type="xsd:string" /> <xsd:element name="Asignada_a" type="xsd:string" /> <xsd:element name="Descripcion_breve" type="xsd:string" /> <xsd:element name="Estado" type="xsd:string" /> <xsd:element name="Fecha_de_creacion" type="xsd:dateTime" /> <xsd:element name="Fecha_de_modificacion" type="xsd:dateTime" /> <xsd:element name="Historial_de_estado" type="xsd:string" /> <xsd:element name="ID_de_peticion" type="xsd:string" /> <xsd:element name="N_Activo" type="xsd:string" /> <xsd:element name="Remitente" type="xsd:string" /> <xsd:element name="Requester" type="xsd:string" /> <xsd:element name="Ultima_modificacion_realizada_por" type="xsd:string" /> </xsd:sequence> </xsd:complexType> <xsd:element name="AuthenticationInfo" type="s:AuthenticationInfo" /> - <xsd:complexType name="AuthenticationInfo"> - <xsd:sequence> <xsd:element name="userName" type="xsd:string" /> <xsd:element name="password" type="xsd:string" /> <xsd:element minOccurs="0" name="authentication" type="xsd:string" /> <xsd:element minOccurs="0" name="locale" type="xsd:string" /> <xsd:element minOccurs="0" name="timeZone" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> - <wsdl:message name="READ_EQUIP_LOCSoapIn"> <wsdl:part element="s:READ_EQUIP_LOC" name="parameters" /> </wsdl:message> - <wsdl:message name="ARAuthenticate"> <wsdl:part element="s:AuthenticationInfo" name="parameters" /> </wsdl:message> - <wsdl:message name="READ_EQUIP_LOCSoapOut"> <wsdl:part element="s:READ_EQUIP_LOCResponse" name="parameters" /> </wsdl:message> - <wsdl:portType name="MMA_SAP_AssetOrderModifyInPortType"> - <wsdl:operation name="READ_EQUIP_LOC"> <wsdl:input message="s:READ_EQUIP_LOCSoapIn" /> <wsdl:output message="s:READ_EQUIP_LOCSoapOut" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="MMA_SAP_AssetOrderModifyInSoapBinding" type="s:MMA_SAP_AssetOrderModifyInPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="READ_EQUIP_LOC"> <soap:operation soapAction="urn:MMA_SAP_AssetOrderModifyIn/READ_EQUIP_LOC" style="document" /> - <wsdl:input> <soap:header message="s:ARAuthenticate" part="parameters" use="literal" /> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="MMA_SAP_AssetOrderModifyInService"> <wsdl:documentation>MMA_SAP_AssetOrderModifyIn</wsdl:documentation> - <wsdl:port binding="s:MMA_SAP_AssetOrderModifyInSoapBinding" name="MMA_SAP_AssetOrderModifyInSoap"> <soap:address location="http://arsdev:9999/arsys/services/ARService?server=arsdev&webService=MMA_SAP_AssetOrderModifyIn" /> </wsdl:port> </wsdl:service> </wsdl:definitions> Many thanks frex --- En date de : Mer 11.6.08, Carey Matthew Black <[EMAIL PROTECTED]> a écrit : De: Carey Matthew Black <[EMAIL PROTECTED]> Objet: Re: NULL pointer error when consuming a web service À: arslist@ARSLIST.ORG Date: Mercredi 11 Juin 2008, 15h55 I would bet that the XML that you are sending either does not have a block like this.... " <SOAP-ENV:Header> <AuthenticationInfo> <userName>user_name</userName> <password>pwd_str</password> <authentication/> <locale/> <timeZone/> </AuthenticationInfo> </SOAP-ENV:Header " Or maybe the userName element was null but present and prevented the Mid-Tier from using a configured default? Or maybe the Mid-Tier does not have a configured default user? If we could see the XML that was sent and the WSDL it might be easier to troubleshoot the issue. HTH. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap.... Pick two. On Wed, Jun 11, 2008 at 8:56 AM, Frex Popo <[EMAIL PROTECTED]> wrote: > ** > > Dear all, > > > > I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier is > also installed on the same machine as the Remedy server. > > > > I am attempting to send some data to the remedy server using a Web Service > and getting the following error: > > > > <faultcode>soapenv:Server.userException</faultcode> > > <faultstring>java.lang.NullPointerException</faultstring> > > > > I tried to simplify things by using a simple form with a character field. I > used both the get and create operations and end up with the same error. I > thought this could be due to some invalid characters either in the data or > the field names but it wasn't to be. > > > > Here is the xml sent to the remedy Web Server: > > > > <?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 /> > > </soapenv:Fault> > > </soapenv:Body> > > </soapenv:Envelope> > > > > Have you seen this error before? > > > > Ah! I am using SOAPSonar to test my Web Service. I used the same client in > the past to test some SAP Web Service and it worked fine. > > > > Many thanks in advance > > > > frex > > > > ________________________________ > Envoyé avec Yahoo! Mail. > Une boite mail plus intelligente. __Platinum Sponsor: www.rmsportal.com > ARSlist: "Where the Answers Are" html___ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"