1 Reply Latest reply on Oct 16, 2013 1:36 PM by alcanrom

    Send Header Parameter webservice_consume doesn´t work

    alcanrom


      Hi,

       

      We are using SOAP CLIENT to send a request to external webservice. We have a problem because the SOAP has a parameter into HEADER:

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:HPD_IncidentInterface_Create_WS">
      <soapenv:Header>
      <urn:AuthenticationInfo>
           <urn:userName>IsoluxUser</urn:userName>
           <urn:password>password</urn:password>
      </urn:AuthenticationInfo>
      </soapenv:Header>
      <soapenv:Body>
      <urn:HelpDesk_Submit_Service>
      <!--Optional:-->
      <urn:Assigned_Group>Network</urn:Assigned_Group>
      <!--Optional:-->
      <urn:Assigned_Group_Shift_Name></urn:Assigned_Group_Shift_Name>

      We don´t know how to include value in header parameters and the request fail. We captured the soap send with a sniffer and this parameters are without value.

       

      How can we send this parameters?, we try with HTT-CLIENT with auth-name and auth-password and with username and password property in esb-content.xml and it´s impossible.

       

      We are sending values with:

       

           requestMap.put("nameBodyParam", value);

       

           message.getBody().add(requestMap);

       

      Any ideas?

       

      Thank you.

        • 1. Re: Send Header Parameter webservice_consume doesn´t work
          alcanrom

          Hi,

           

          Today we have tried to use wise.SOAPClient and didn´t work.

           

          We have to fill other properties, for example EndPoint and generate wise-core.properties.

           

          We need to send xml with header authenticate and we can not using SOAPCLIENT and WISE.SOAPCLIENT.

           

          Now when we are running the consumer obtain the next error:

           

          19:17:59,532 ERROR [STDERR] org.jboss.soa.esb.couriers.FaultMessageException: java.lang.NullPointerException

          19:17:59,532 ERROR [STDERR]     at org.jboss.soa.esb.listeners.message.errors.Factory.createExceptionFromFault(Factory.java:51)

          19:17:59,532 ERROR [STDERR]     at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:207)

          19:17:59,532 ERROR [STDERR]     at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.attemptDelivery(ServiceInvoker.java:710)

          19:17:59,532 ERROR [STDERR]     at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.access$200(ServiceInvoker.java:604)

          19:17:59,532 ERROR [STDERR]     at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:392)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:221)

          19:17:59,533 ERROR [STDERR]     at org.jboss.esb.webservices.OperationsFromCAtoITSM.createIncident(OperationsFromCAtoITSM.java:260)

          19:17:59,533 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          19:17:59,533 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          19:17:59,533 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          19:17:59,533 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:606)

          19:17:59,533 ERROR [STDERR]     at org.jboss.wsf.container.jboss50.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:102)

          19:17:59,533 ERROR [STDERR]     at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:241)

          19:17:59,533 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:470)

          19:17:59,533 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:294)

          19:17:59,533 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)

          19:17:59,533 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.actions.soap.SOAPProcessor.process(SOAPProcessor.java:212)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:667)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:614)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:442)

          19:17:59,533 ERROR [STDERR]     at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:587)

          19:17:59,533 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          19:17:59,533 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          19:17:59,533 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:724)

          19:17:59,534 ERROR [STDERR] Caused by: java.lang.NullPointerException

          19:17:59,534 ERROR [STDERR]     at org.jboss.soa.esb.actions.soap.wise.SOAPClient.getWSMethodFromEndpoint(SOAPClient.java:452)

          19:17:59,534 ERROR [STDERR]     at org.jboss.soa.esb.actions.soap.wise.SOAPClient.process(SOAPClient.java:273)

          19:17:59,534 ERROR [STDERR]     ... 7 more

          19:17:59,534 INFO  [STDOUT] Estamos en el webservice de: message: [ JBOSS_XML ]

           

           

          wise-core.properties:

           

          wise.tmpDir=/tmp

          wise.forceImportObject=true

          wise.keepGeneratedSources=true

          wise.wsImporter.verbose=true

          wise.targetPackage=org.jboss.soa.esb.operations.generated

           

          jboss-esb.xml:

           

          <action name="soapui-client-action" class="org.jboss.soa.esb.actions.soap.wise.SOAPClient">

                          <property name="wsdl" value="http://170.251.72.99:8080/arsys/WSDL/public/mad-vm-itsm/HPD_IncidentInterface_Create_WS?wsdl"/>

                          <property name="operationName" value="HelpDesk_Submit_Service"/>

                          <property name="SOAPAction" value="HelpDesk_Submit_Service"/>

                          <property name="EndPointName" value="http://170.251.72.99:8080/arsys/WSDL/public/mad-vm-itsm/HPD_IncidentInterface_Create_WS"/>

              </action>

           

          Any solution?