Error is a SOAP Fault (Client Side)

DEBUG - content                        - << "<?xml version="1.0"
encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xm
lns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><soap:Fault><fau
ltcode>soap:Client</faultcode><
faultstring>System.Web.Services.Protocols.SoapException: Der Wert des
HTTP-Headers 'SOAPAction' wurde vom Server nicht erkannt: .[\r][\n]"

Can you try adding the 'SOAPAction' to your http endpoint for the proxy.


  <http:endpoint service="univis:WebServiceESBunivis"
                 endpoint="WebServiceESBunivisSoap"
                 role="provider"
                
locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis
/WebServiceESBunivis.asmx"
                 soap="true" 
                     soapAction="http://univis.com/findLectureXML"/>

I am not sure why it is cribbing for SOAPAction (should be optional),
but you can try this out.

Regards,
Rabi Mishra, 
http://rabisblog.blogspot.com/
c++; /* this makes c bigger but returns the old value */ 
-----Original Message-----
From: Bombjack [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 04, 2007 12:19 PM
To: [email protected]
Subject: RE: Issues with simple proxy scenario



rabi wrote:
> 
> 
> Hi Berney,
> 
> I will try and answer your query. Xbean configurations look ok to me. 
> 
> Can you share the wsdl for
> 
> http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebService
> ES
> Bunivis.asmx
> 
> Is this a document style. From the code it does not look to me like a 
> document style WS.
> 
> "String r = webServiceESBunivis.findLectureXML("Architecture");"
> 
> 

I'm not sure whether it's a document style WS or not. So it may well be
incorrect.
Here is the wsdl of WebServiceESBunivis.asmx:

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:tns="http://univis.com"; xmlns:s="http://www.w3.org/2001/XMLSchema";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
targetNamespace="http://univis.com";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:types>
    <s:schema elementFormDefault="qualified"
targetNamespace="http://univis.com";>
      <s:element name="findLectureXML">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="lecture_name"
type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="findLectureXMLResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1"
name="findLectureXMLResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="findLectureXMLSoapIn">
    <wsdl:part name="parameters" element="tns:findLectureXML" />
  </wsdl:message>
  <wsdl:message name="findLectureXMLSoapOut">
    <wsdl:part name="parameters" element="tns:findLectureXMLResponse" />
  </wsdl:message>
  <wsdl:portType name="WebServiceESBunivisSoap">
    <wsdl:operation name="findLectureXML">
      <wsdl:input message="tns:findLectureXMLSoapIn" />
      <wsdl:output message="tns:findLectureXMLSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WebServiceESBunivisSoap"
type="tns:WebServiceESBunivisSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; />
    <wsdl:operation name="findLectureXML">
      <soap:operation soapAction="http://univis.com/findLectureXML";
style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="WebServiceESBunivisSoap12"
type="tns:WebServiceESBunivisSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; />
    <wsdl:operation name="findLectureXML">
      <soap12:operation soapAction="http://univis.com/findLectureXML";
style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WebServiceESBunivis">
    <wsdl:port name="WebServiceESBunivisSoap"
binding="tns:WebServiceESBunivisSoap">
      <soap:address
location="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/We
bServiceESBunivis.asmx"
/>
    </wsdl:port>
    <wsdl:port name="WebServiceESBunivisSoap12"
binding="tns:WebServiceESBunivisSoap12">
      <soap12:address
location="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/We
bServiceESBunivis.asmx"
/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


rabi wrote:
> 
> 
> Also the can you provide the error stack trace with the log level set 
> to DEBUG.
> 
> Regards,
> Rabi Mishra,
> http://rabisblog.blogspot.com/
> c++; /* this makes c bigger but returns the old value */
> 

Here:

DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
[EMAIL PROTECTED]
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - continuation
[EMAIL PROTECTED]
DEBUG - DefaultEndpoint                - Received message to null
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase
dispatch
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase dispatch
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase dispatch
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to
phase
service
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase
service
DEBUG - HandlerPipeline                - Invoking phase transport
DEBUG - HandlerPipeline                - Invoking phase parse
DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
DEBUG - HandlerPipeline                - Invoking phase dispatch
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.handler.LocateBindingHandler in phase dispatch
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.soap.handler.SoapBodyHandler in phase dispatch
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.handler.DispatchServiceHandler in phase dispatch
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase send
DEBUG - HandlerPipeline                - Invoking phase policy
DEBUG - HandlerPipeline                - Invoking phase user
DEBUG - HandlerPipeline                - Invoking phase pre-invoke
DEBUG - HandlerPipeline                - Invoking phase service
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.service.binding.ServiceInvocationHandler in phase
service
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - XMLDocumentationBuilder        - Searching for
WebServiceESBunivisSoap.doc.xml config..
DEBUG - XMLDocumentationBuilder        - Config
WebServiceESBunivisSoap.doc.xml NOT found.
DEBUG - XMLTypeCreator                 - Mapping file :
/com/univis/WebServiceESBunivisSoap.aegis.xml not found.
DEBUG - XMLTypeCreator                 - Mapping file :
/com/univis/WebServiceESBunivisSoap.aegis.xml not found.
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - DefaultTransportManager        - Registered transport
[EMAIL PROTECTED]
DEBUG - XFireProxy                     - Method [findLectureXML]
[Architektur]
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase send
DEBUG - HandlerPipeline                - Invoking phase post-invoke
DEBUG - HandlerPipeline                - Invoking phase policy
DEBUG - HandlerPipeline                - Invoking phase user
DEBUG - HandlerPipeline                - Invoking phase transport
DEBUG - HandlerPipeline                - Invoking phase send
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.handler.OutMessageSender in phase send
DEBUG - header                         - >> "POST
/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx
HTTP/1.1[\r][\n]"
DEBUG - header                         - >> "Content-Type:
text/xml[\r][\n]"
DEBUG - header                         - >> "Content-Length:
265[\r][\n]"
DEBUG - header                         - >> "SOAPAction: ""[\r][\n]"
DEBUG - header                         - >> "User-Agent: Jakarta
Commons-HttpClient/3.0[\r][\n]"
DEBUG - header                         - >> "Host: localhost:88[\r][\n]"
DEBUG - header                         - >> "[\r][\n]"
DEBUG - content                        - >> "<?xml version='1.0'
encoding='UTF-8'?><env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope";><env:B
ody><findLectureXML xmlns="http://univis.com";><lecture_name
xmlns="http://univis.com";>Architektur</lecture_name></findLectureXML></e
nv:Body></env:Envelope>
"
DEBUG - header                         - << "HTTP/1.1 500 Internal
Server
Error[\r][\n]"
DEBUG - header                         - << "Date: Wed, 04 Jul 2007
06:34:57
GMT[\r][\n]"
DEBUG - header                         - << "Server:
Microsoft-IIS/6.0[\r][\n]"
DEBUG - header                         - << "X-Powered-By:
ASP.NET[\r][\n]"
DEBUG - header                         - << "X-AspNet-Version:
2.0.50727[\r][\n]"
DEBUG - header                         - << "Cache-Control:
private[\r][\n]"
DEBUG - header                         - << "Content-Type: text/xml;
charset=utf-8[\r][\n]"
DEBUG - header                         - << "Content-Length:
879[\r][\n]"
DEBUG - content                        - << "<?xml version="1.0"
encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xm
lns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><soap:Fault><fau
ltcode>soap:Client</faultcode><
faultstring>System.Web.Services.Protocols.SoapException: Der Wert des
HTTP-Headers 'SOAPAction' wurde vom Server nicht erkannt: .[\r][\n]"
DEBUG - content                        - << "   bei
System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()[
\r][\n]"
DEBUG - content                        - << "   bei
System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServer
Message
message)[\r][\n]"
DEBUG - content                        - << "   bei
System.Web.Services.Protocols.SoapServerProtocol.Initialize()[\r][\n]"
DEBUG - content                        - << "   bei
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest
request, HttpResponse response, Boolean&amp;
abortProcessing)</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>"
ERROR - DefaultFaultHandler            - Fault occurred!
org.codehaus.xfire.XFireRuntimeException: Could not invoke service..
Nested
exception is org.codehaus.xfire.fault.XFireFault: Error sending jbi
exchange
org.codehaus.xfire.fault.XFireFault: Error sending jbi exchange
        at
org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java
:30)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:1
31)
        at
org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at
org.apache.servicemix.jsr181.xfire.JbiProxy$JAXWSJBIClient.invoke(JbiPro
xy.java:228)
        at
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at
org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at
org.apache.servicemix.jsr181.xfire.JbiProxyFactoryBean$1.invoke(JbiProxy
FactoryBean.java:76)
        at $Proxy0.findLectureXML(Unknown Source)
        at
org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileI
mpl.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoke
r.java:54)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(
ServiceInvocationHandler.java:322)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(Servic
eInvocationHandler.java:86)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(Serv
iceInvocationHandler.java:134)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(Servi
ceInvocationHandler.java:109)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:1
31)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.j
ava:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.jav
a:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181Excha
ngeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeC
ycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBas
eLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCyc
le.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(D
eliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.j
ava:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:1
34)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.xfire.XFireException: Error sending jbi exchange
        at
org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:155)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java
:26)
        ... 32 more
Caused by: java.lang.NullPointerException: text can not be null
        at
org.apache.servicemix.jbi.jaxp.StringSource.<init>(StringSource.java:42)
        at
org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:136)
        ... 33 more
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase send
DEBUG - HandlerPipeline                - adding handler
[EMAIL PROTECTED] to phase user
DEBUG - HandlerPipeline                - Invoking phase post-invoke
DEBUG - HandlerPipeline                - Invoking phase policy
DEBUG - HandlerPipeline                - Invoking phase user
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.jaxws.handler.WebFaultHandler in phase user
DEBUG - HandlerPipeline                - Invoking phase transport
DEBUG - HandlerPipeline                - Invoking phase send
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.fault.FaultSender in phase send
DEBUG - jetty                          - resume continuation
[EMAIL PROTECTED]
DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
[EMAIL PROTECTED]
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
DEBUG - jetty                          - continuation
[EMAIL PROTECTED]

Thanks,
Berny
-- 
View this message in context:
http://www.nabble.com/Issues-with-simple-proxy-scenario-tf4022130s12049.
html#a11425715
Sent from the ServiceMix - User mailing list archive at Nabble.com.



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to