users@glassfish.java.net

ClientTransportException while calling WS on remote server

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Nov 2007 23:48:57 PST

Hi

Ok what I am trying to do is call a web service from a bpel process, the web service is located on remote server.

When the bpel process does a invoke to call the web service with the required parameters I get following exception in my localhost server log.

Sending Invoke Status for 266036911479395-34274-134150949690620093status Done
Sending a two way outbound message to the NMR. MessageExchangeId is 266036911479395-34274-134150949721870094, service name is {http://enterprise.netbeans.org/bpel/VoxTelecomBPELModule/VoxTelecomCreateCustomer}DoodlePartnerLink, endpoint name is com.datapro.services.customerRole_partnerRole.
Exception in processing reply.
com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized
        at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:232)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:151)
        at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:140)
        at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
        at com.sun.xml.ws.client.Stub.process(Stub.java:248)
        at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:180)
        at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
        at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.outboundCall(OutboundMessageProcessor.java:657)
        at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:301)
        at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:188)
        at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:61)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Pattern for exchange Id 266036911479395-34274-134150949721870094 is http://www.w3.org/2004/08/wsdl/in-out
This is from the exception block.
com.sun.bpel.model.meta.impl.RInvokeImpl_at_15d2461={<?xml version="1.0" encoding="utf-8" ?>
<invoke name="DoodleInvoke"
        partnerLink="DoodlePartnerLink"
        portType="ns8:com.datapro.services.customer"
        operation="addVoxIndividual"
        inputVariable="AddVoxDoodleIn"
        outputVariable="AddVoxDoodleOut"></invoke>}
[Fatal Error] :1:1: Content is not allowed in prolog.

My localhost is the glassfish v3 b58 appserver whereas the remote server has the glassfish (build b41d-beta2), I do not know if this would be the problem.

Any ideas what I can try.

My technical knowledge os the security involved with web services across application servers is extremely limited. Any help would appreciated
[Message sent by forum member 'jnrdevsa' (jnrdevsa)]

http://forums.java.net/jive/thread.jspa?messageID=246902