You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bombjack <be...@gmail.com> on 2007/07/04 04:45:23 UTC

Issues with simple proxy scenario

Hi,

I'm new to the ServiceMix world and have been trying to get the following
scenario to work, but it keeps giving me trouble:

-A web service called TestXmlFile in a jsr181 SU serves as a consumer.
-This web service calls some function provided by an external web service
named WebServiceESBunivis.

I started by creating the WSDLs for the TestXmlFile and WebServiceESBunivis,
and generated all the corresponding classes through the "mvn
generate-sources" command. The only class I then edited was
TestXmlFileImpl.java.

So far, I am able to contact and get a response from TestXmlFile. However,
as soon as TestXmlFile tries to call some function provided by the external
WebServiceESBunivis, I'm getting the error messages "Could not invoke
service" and "Error sending JBI exchange" by xfire.

Web service TestXmlFile is defined as:
-------------------------------------
@WebService(serviceName = "TestXmlFile", targetNamespace =
"http://meinBeispiel.org/testxmlfile", endpointInterface =
"org.meinbeispiel.testxmlfile.LecturePortType")
public class TestXmlFileImpl
    implements LecturePortType
{
	
    private WebServiceESBunivisSoap webServiceESBunivis;
	
    public void setWebServiceESBunivis(WebServiceESBunivisSoap
webServiceESBunivis) {
        this.webServiceESBunivis = webServiceESBunivis;
    }
    
    
    public FindLectureResponse
getSomeLecture(org.meinbeispiel.testxmlfile.FindLectureRequest
FindLectureRequest) {
	
----> String r = webServiceESBunivis.findLectureXML("Architecture");

        FindLectureResponse rep = new FindLectureResponse();
        rep.setReturnString("test");
        return rep;
-------------------------------------

The above arrow points out the line that keeps causing the error messages.
I registered both services in the http xbean.xml and jsr181 xbean.xml files
as follows:

<!--HTTP SU-->
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:testfile="http://meinBeispiel.org/testxmlfile"
       xmlns:univis="http://univis.com">
       
  <http:endpoint service="testfile:TestXmlFile"
                 endpoint="TestXmlFilePort"
                 role="consumer"
                 locationURI="http://localhost:8192/MeinBeispiel/"
                 soap="true" />             
    
  <http:endpoint service="univis:WebServiceESBunivis"
                 endpoint="WebServiceESBunivisSoap"
                 role="provider"
                
locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx"
                 soap="true" />
</beans>


and


<!--JSR181 SU-->
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
       xmlns:univis="http://univis.com">

    <jsr181:endpoint pojo="#testxmlfile"
                     wsdlResource="classpath:service.wsdl" 
                     typeMapping="jaxb2"
                     annotations="jsr181"
                     style="document" />
                     
  <bean id="testxmlfile"
class="org.meinbeispiel.testxmlfile.TestXmlFileImpl">
    <property name="webServiceESBunivis">
      <jsr181:proxy context="#context" 
                    type="com.univis.WebServiceESBunivisSoap"
                    service="univis:WebServiceESBunivis" />
    </property>
  </bean>
  
</beans>


I probably made a relatively simple mistake somewhere, but for the life of
it I can't figure out exactly where.
Thanks in advance for your help,
Berny

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


Re: Issues with simple proxy scenario

Posted by Bombjack <be...@gmail.com>.
Sure:

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:131)
        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(JbiProxy.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(JbiProxyFactoryBean.java:76)
        at $Proxy0.findLectureXML(Unknown Source)
        at
org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
        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

Adrian Co wrote:
> 
> Hi,
> 
> Can you post the error stack?
> 
> Bombjack wrote:
>> Hi,
>>
>> I'm new to the ServiceMix world and have been trying to get the following
>> scenario to work, but it keeps giving me trouble:
>>
>> -A web service called TestXmlFile in a jsr181 SU serves as a consumer.
>> -This web service calls some function provided by an external web service
>> named WebServiceESBunivis.
>>
>> I started by creating the WSDLs for the TestXmlFile and
>> WebServiceESBunivis,
>> and generated all the corresponding classes through the "mvn
>> generate-sources" command. The only class I then edited was
>> TestXmlFileImpl.java.
>>
>> So far, I am able to contact and get a response from TestXmlFile.
>> However,
>> as soon as TestXmlFile tries to call some function provided by the
>> external
>> WebServiceESBunivis, I'm getting the error messages "Could not invoke
>> service" and "Error sending JBI exchange" by xfire.
>>
>> Web service TestXmlFile is defined as:
>> -------------------------------------
>> @WebService(serviceName = "TestXmlFile", targetNamespace =
>> "http://meinBeispiel.org/testxmlfile", endpointInterface =
>> "org.meinbeispiel.testxmlfile.LecturePortType")
>> public class TestXmlFileImpl
>>     implements LecturePortType
>> {
>> 	
>>     private WebServiceESBunivisSoap webServiceESBunivis;
>> 	
>>     public void setWebServiceESBunivis(WebServiceESBunivisSoap
>> webServiceESBunivis) {
>>         this.webServiceESBunivis = webServiceESBunivis;
>>     }
>>     
>>     
>>     public FindLectureResponse
>> getSomeLecture(org.meinbeispiel.testxmlfile.FindLectureRequest
>> FindLectureRequest) {
>> 	
>> ----> String r = webServiceESBunivis.findLectureXML("Architecture");
>>
>>         FindLectureResponse rep = new FindLectureResponse();
>>         rep.setReturnString("test");
>>         return rep;
>> -------------------------------------
>>
>> The above arrow points out the line that keeps causing the error
>> messages.
>> I registered both services in the http xbean.xml and jsr181 xbean.xml
>> files
>> as follows:
>>
>> <!--HTTP SU-->
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>        xmlns:testfile="http://meinBeispiel.org/testxmlfile"
>>        xmlns:univis="http://univis.com">
>>        
>>   <http:endpoint service="testfile:TestXmlFile"
>>                  endpoint="TestXmlFilePort"
>>                  role="consumer"
>>                  locationURI="http://localhost:8192/MeinBeispiel/"
>>                  soap="true" />             
>>     
>>   <http:endpoint service="univis:WebServiceESBunivis"
>>                  endpoint="WebServiceESBunivisSoap"
>>                  role="provider"
>>                 
>> locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx"
>>                  soap="true" />
>> </beans>
>>
>>
>> and
>>
>>
>> <!--JSR181 SU-->
>> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
>>        xmlns:univis="http://univis.com">
>>
>>     <jsr181:endpoint pojo="#testxmlfile"
>>                      wsdlResource="classpath:service.wsdl" 
>>                      typeMapping="jaxb2"
>>                      annotations="jsr181"
>>                      style="document" />
>>                      
>>   <bean id="testxmlfile"
>> class="org.meinbeispiel.testxmlfile.TestXmlFileImpl">
>>     <property name="webServiceESBunivis">
>>       <jsr181:proxy context="#context" 
>>                     type="com.univis.WebServiceESBunivisSoap"
>>                     service="univis:WebServiceESBunivis" />
>>     </property>
>>   </bean>
>>   
>> </beans>
>>
>>
>> I probably made a relatively simple mistake somewhere, but for the life
>> of
>> it I can't figure out exactly where.
>> Thanks in advance for your help,
>> Berny
>>
>>   
> 
> 
> 

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


Re: Issues with simple proxy scenario

Posted by Adrian Co <ac...@exist.com>.
Hi,

Can you post the error stack?

Bombjack wrote:
> Hi,
>
> I'm new to the ServiceMix world and have been trying to get the following
> scenario to work, but it keeps giving me trouble:
>
> -A web service called TestXmlFile in a jsr181 SU serves as a consumer.
> -This web service calls some function provided by an external web service
> named WebServiceESBunivis.
>
> I started by creating the WSDLs for the TestXmlFile and WebServiceESBunivis,
> and generated all the corresponding classes through the "mvn
> generate-sources" command. The only class I then edited was
> TestXmlFileImpl.java.
>
> So far, I am able to contact and get a response from TestXmlFile. However,
> as soon as TestXmlFile tries to call some function provided by the external
> WebServiceESBunivis, I'm getting the error messages "Could not invoke
> service" and "Error sending JBI exchange" by xfire.
>
> Web service TestXmlFile is defined as:
> -------------------------------------
> @WebService(serviceName = "TestXmlFile", targetNamespace =
> "http://meinBeispiel.org/testxmlfile", endpointInterface =
> "org.meinbeispiel.testxmlfile.LecturePortType")
> public class TestXmlFileImpl
>     implements LecturePortType
> {
> 	
>     private WebServiceESBunivisSoap webServiceESBunivis;
> 	
>     public void setWebServiceESBunivis(WebServiceESBunivisSoap
> webServiceESBunivis) {
>         this.webServiceESBunivis = webServiceESBunivis;
>     }
>     
>     
>     public FindLectureResponse
> getSomeLecture(org.meinbeispiel.testxmlfile.FindLectureRequest
> FindLectureRequest) {
> 	
> ----> String r = webServiceESBunivis.findLectureXML("Architecture");
>
>         FindLectureResponse rep = new FindLectureResponse();
>         rep.setReturnString("test");
>         return rep;
> -------------------------------------
>
> The above arrow points out the line that keeps causing the error messages.
> I registered both services in the http xbean.xml and jsr181 xbean.xml files
> as follows:
>
> <!--HTTP SU-->
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:testfile="http://meinBeispiel.org/testxmlfile"
>        xmlns:univis="http://univis.com">
>        
>   <http:endpoint service="testfile:TestXmlFile"
>                  endpoint="TestXmlFilePort"
>                  role="consumer"
>                  locationURI="http://localhost:8192/MeinBeispiel/"
>                  soap="true" />             
>     
>   <http:endpoint service="univis:WebServiceESBunivis"
>                  endpoint="WebServiceESBunivisSoap"
>                  role="provider"
>                 
> locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx"
>                  soap="true" />
> </beans>
>
>
> and
>
>
> <!--JSR181 SU-->
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
>        xmlns:univis="http://univis.com">
>
>     <jsr181:endpoint pojo="#testxmlfile"
>                      wsdlResource="classpath:service.wsdl" 
>                      typeMapping="jaxb2"
>                      annotations="jsr181"
>                      style="document" />
>                      
>   <bean id="testxmlfile"
> class="org.meinbeispiel.testxmlfile.TestXmlFileImpl">
>     <property name="webServiceESBunivis">
>       <jsr181:proxy context="#context" 
>                     type="com.univis.WebServiceESBunivisSoap"
>                     service="univis:WebServiceESBunivis" />
>     </property>
>   </bean>
>   
> </beans>
>
>
> I probably made a relatively simple mistake somewhere, but for the life of
> it I can't figure out exactly where.
> Thanks in advance for your help,
> Berny
>
>   


Re: Issues with simple proxy scenario

Posted by rabi <ra...@wipro.com>.
Add this to your TestXmlFileImpl  

@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE)


after

@WebService(serviceName = "TestXmlFile", targetNamespace =
"http://meinBeispiel.org/testxmlfile", endpointInterface =
"org.meinbeispiel.testxmlfile.LecturePortType") 

I think this problem is because you are consuming a .NET web service. Hope
this helps..

 

Gert Vanthienen wrote:
> 
> L.S.,
> 
> This might be due to a bug in ServiceMix that has recently been fixed 
> [1].  Can you retry it with a 3.2 snapshot built from source?
> 
> Gert
> 
> [1] https://issues.apache.org/activemq/browse/SM-960
> 
> Bombjack wrote:
>> rabi wrote:
>>   
>>> 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 */ 
>>>
>>>
>>>     
>>
>> I added the SOAPaction as suggested and according to the logging
>> information
>> the external web service now responds. However, I'm getting this error
>> now,
>> which doesnt make any sense to me:
>>
>> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
>> org.mortbay.jetty.HttpConnection@53f89f
>> DEBUG - jetty                          - servlet=jbiServlet
>> DEBUG - jetty                          - chain=null
>> DEBUG - jetty                          - servelet holder=jbiServlet
>> DEBUG - jetty                          - continuation
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
>> DEBUG - DefaultEndpoint                - Received message to null
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.DispatchServiceHandler@1a9ec16 to phase
>> dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.LocateBindingHandler@10f7612 to phase dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.soap.handler.SoapBodyHandler@10c986 to phase dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler@1e9c3f to
>> phase
>> service
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.service.binding.PostInvocationHandler@1a40cfc 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
>> org.codehaus.xfire.handler.OutMessageSender@2083d 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
>> org.codehaus.xfire.transport.local.LocalTransport@10a5314
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.dead.DeadLetterTransport@d448a1
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.http.SoapHttpTransport@ec77cb
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.http.HttpTransport@acd5d4
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.apache.servicemix.jsr181.xfire.JbiTransport@10a6001
>> 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
>> org.codehaus.xfire.transport.local.LocalTransport@39a867
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.dead.DeadLetterTransport@15f0876
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.http.SoapHttpTransport@248a0a
>> DEBUG - DefaultTransportManager        - Registered transport
>> org.codehaus.xfire.transport.http.HttpTransport@e2bc8d
>> DEBUG - XFireProxy                     - Method [findLectureXML]
>> [Architecture]
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.OutMessageSender@1d6fad7 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: 266[\r][\n]"
>> DEBUG - header                         - >> "SOAPAction:
>> http://univis.com/findLectureXML[\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">Architecture</lecture_name></findLectureXML></env:Body></env:Envelope
>>   
>>> "
>>>     
>> DEBUG - header                         - << "HTTP/1.1 200 OK[\r][\n]"
>> DEBUG - header                         - << "Date: Wed, 04 Jul 2007
>> 08:34:40
>> 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,
>> max-age=0[\r][\n]"
>> DEBUG - header                         - << "Content-Type:
>> application/soap+xml; charset=utf-8[\r][\n]"
>> DEBUG - header                         - << "Content-Length: 399[\r][\n]"
>> DEBUG - content                        - << "<?xml version="1.0"
>> encoding="utf-8"?><soap:Envelope
>> xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmln
>> s:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><findLectureXMLResponse
>> xmlns="http://univis.com"
>>   
>>> <findLectureXMLResult>Architecture received and
>>>     
>> returned.</findLectureXMLResult></findLectureXMLResponse></soap:Body></soap:Envelope>"
>> DEBUG - Client                         - Received message to
>> urn:xfire:transport:jbi:11835380805622983865035
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.LocateBindingHandler@1ba614a to phase dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.soap.handler.SoapBodyHandler@149453c to phase dispatch
>> DEBUG - HandlerPipeline                - Invoking phase transport
>> DEBUG - HandlerPipeline                - Invoking phase parse
>> DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
>> DEBUG - HandlerPipeline                - Invoking handler
>> org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
>> DEBUG - Client                         - Correlating context with ID
>> 118353808056231945052852
>> DEBUG - Client                         - Found correlated context with ID
>> 118353808056231945052852
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.client.ClientReceiveHandler@d083 to phase service
>> 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                - adding handler
>> org.codehaus.xfire.client.ClientFaultConverter@14096e6 to phase user
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
>> DEBUG - HandlerPipeline                - Invoking phase transport
>> DEBUG - HandlerPipeline                - Invoking phase parse
>> DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
>> DEBUG - HandlerPipeline                - Invoking handler
>> org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
>> DEBUG - Client                         - Correlating context with ID
>> 118353808056231945052852
>> DEBUG - Client                         - Found correlated context with ID
>> 118353808056231945052852
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.client.ClientReceiveHandler@1a80183 to phase service
>> DEBUG - HandlerPipeline                - Invoking phase dispatch
>> DEBUG - HandlerPipeline                - Invoking phase policy
>> DEBUG - HandlerPipeline                - Invoking phase user
>> DEBUG - HandlerPipeline                - Invoking handler
>> org.codehaus.xfire.client.ClientFaultConverter in phase user
>> DEBUG - HandlerPipeline                - Invoking phase pre-invoke
>> DEBUG - HandlerPipeline                - Invoking phase service
>> DEBUG - HandlerPipeline                - Invoking handler
>> org.codehaus.xfire.client.ClientReceiveHandler in phase service
>> ERROR - DefaultFaultHandler            - Fault occurred!
>> org.codehaus.xfire.XFireRuntimeException: Could not invoke service..
>> Nested
>> exception is org.codehaus.xfire.fault.XFireFault: The current event is
>> not
>> STAR
>> T_ELEMENT
>>  but 7
>> org.codehaus.xfire.fault.XFireFault: The current event is not
>> START_ELEMENT
>>  but 7
>>         at
>> org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
>>         at org.codehaus.xfire.client.Client.onReceive(Client.java:391)
>>         at
>> org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:147)
>>         at
>> org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
>>         at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>         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(JbiProxy.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(JbiProxyFactoryBean.java:76)
>>         at $Proxy0.findLectureXML(Unknown Source)
>>         at
>> org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
>>         at
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
>>         at
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
>>         at
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
>>         at
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
>>         at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>         at
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>>         at
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>         at
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
>>         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: java.lang.IllegalStateException: The current event is not
>> START_ELEMENT
>>  but 7
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:124)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
>>         at
>> org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
>>         at
>> org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:129)
>>         at
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>>         at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>         at org.codehaus.xfire.client.Client.onReceive(Client.java:387)
>>         ... 34 more
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.fault.FaultSender@e00321 to phase send
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.jaxws.handler.WebFaultHandler@ed6f0d 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
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
>> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
>> org.mortbay.jetty.HttpConnection@53f89f
>> DEBUG - jetty                          - servlet=jbiServlet
>> DEBUG - jetty                          - chain=null
>> DEBUG - jetty                          - servelet holder=jbiServlet
>> DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
>> DEBUG - jetty                          - continuation
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
>> ---------
>>
>> I also tried changing the style from "document" to "wrapped" in the
>> JSR181
>> SU xbean.xml to see if it makes any difference:
>>                                                      <jsr181:endpoint
>> pojo="#testxmlfile"
>>                                                                  
>> typeMapping="jaxb2"
>>                                                                  
>> annotations="jsr181"
>>                                                                  
>> wsdlResource="classpath:service.wsdl"
>>                                                                  
>> style="wrapped" />
>>
>> but only gave me back a different type of error message:
>>
>> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
>> org.mortbay.jetty.HttpConnection@a980fa
>> DEBUG - jetty                          - servlet=jbiServlet
>> DEBUG - jetty                          - chain=null
>> DEBUG - jetty                          - servelet holder=jbiServlet
>> DEBUG - jetty                          - continuation
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
>> DEBUG - DefaultEndpoint                - Received message to null
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.DispatchServiceHandler@1e4d960 to phase
>> dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.handler.LocateBindingHandler@17b5179 to phase dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.soap.handler.SoapBodyHandler@121f956 to phase dispatch
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.service.binding.ServiceInvocationHandler@15d8362 to
>> phase
>> service
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.service.binding.PostInvocationHandler@5c9ab5 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
>> ERROR - JaxbType                       -
>> javax.xml.bind.UnmarshalException:
>> unexpected element (uri:"", local:"string"). Expected elements are
>> <{http://mei
>> nBeispiel.org/testxmlfile}FindLectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
>> INFO  - DefaultFaultHandler            - Fault occurred!
>> javax.xml.bind.UnmarshalException: unexpected element (uri:"",
>> local:"string"). Expected elements are
>> <{http://meinBeispiel.org/testxmlfile}FindLectureRequ
>> est>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:201)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
>>         at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
>>         at
>> org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
>>         at
>> org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)
>>         at
>> org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
>>         at
>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50)
>>         at
>> org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182)
>>         at
>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>>         at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>         at
>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>>         at
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>         at
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
>>         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: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
>> local:"string"). Expected elements are
>> <{http://meinBeispiel.org/testxmlfile}Find
>> LectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
>>         ... 32 more
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.fault.FaultSender@1654 to phase send
>> DEBUG - HandlerPipeline                - adding handler
>> org.codehaus.xfire.jaxws.handler.WebFaultHandler@1b9e7df 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
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
>> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
>> org.mortbay.jetty.HttpConnection@a980fa
>> DEBUG - jetty                          - servlet=jbiServlet
>> DEBUG - jetty                          - chain=null
>> DEBUG - jetty                          - servelet holder=jbiServlet
>> DEBUG - jetty                          - RESPONSE /MeinBeispiel/  500
>> DEBUG - jetty                          - continuation
>> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
>>
>>   
> 
> 
> 

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


Re: Issues with simple proxy scenario

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,

This might be due to a bug in ServiceMix that has recently been fixed 
[1].  Can you retry it with a 3.2 snapshot built from source?

Gert

[1] https://issues.apache.org/activemq/browse/SM-960

Bombjack wrote:
> rabi wrote:
>   
>> 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 */ 
>>
>>
>>     
>
> I added the SOAPaction as suggested and according to the logging information
> the external web service now responds. However, I'm getting this error now,
> which doesnt make any sense to me:
>
> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
> org.mortbay.jetty.HttpConnection@53f89f
> DEBUG - jetty                          - servlet=jbiServlet
> DEBUG - jetty                          - chain=null
> DEBUG - jetty                          - servelet holder=jbiServlet
> DEBUG - jetty                          - continuation
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
> DEBUG - DefaultEndpoint                - Received message to null
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.DispatchServiceHandler@1a9ec16 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.LocateBindingHandler@10f7612 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.soap.handler.SoapBodyHandler@10c986 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.service.binding.ServiceInvocationHandler@1e9c3f to phase
> service
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.service.binding.PostInvocationHandler@1a40cfc 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
> org.codehaus.xfire.handler.OutMessageSender@2083d 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
> org.codehaus.xfire.transport.local.LocalTransport@10a5314
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.dead.DeadLetterTransport@d448a1
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.http.SoapHttpTransport@ec77cb
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.http.HttpTransport@acd5d4
> DEBUG - DefaultTransportManager        - Registered transport
> org.apache.servicemix.jsr181.xfire.JbiTransport@10a6001
> 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
> org.codehaus.xfire.transport.local.LocalTransport@39a867
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.dead.DeadLetterTransport@15f0876
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.http.SoapHttpTransport@248a0a
> DEBUG - DefaultTransportManager        - Registered transport
> org.codehaus.xfire.transport.http.HttpTransport@e2bc8d
> DEBUG - XFireProxy                     - Method [findLectureXML]
> [Architecture]
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.OutMessageSender@1d6fad7 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: 266[\r][\n]"
> DEBUG - header                         - >> "SOAPAction:
> http://univis.com/findLectureXML[\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">Architecture</lecture_name></findLectureXML></env:Body></env:Envelope
>   
>> "
>>     
> DEBUG - header                         - << "HTTP/1.1 200 OK[\r][\n]"
> DEBUG - header                         - << "Date: Wed, 04 Jul 2007 08:34:40
> 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,
> max-age=0[\r][\n]"
> DEBUG - header                         - << "Content-Type:
> application/soap+xml; charset=utf-8[\r][\n]"
> DEBUG - header                         - << "Content-Length: 399[\r][\n]"
> DEBUG - content                        - << "<?xml version="1.0"
> encoding="utf-8"?><soap:Envelope
> xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmln
> s:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><findLectureXMLResponse
> xmlns="http://univis.com"
>   
>> <findLectureXMLResult>Architecture received and
>>     
> returned.</findLectureXMLResult></findLectureXMLResponse></soap:Body></soap:Envelope>"
> DEBUG - Client                         - Received message to
> urn:xfire:transport:jbi:11835380805622983865035
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.LocateBindingHandler@1ba614a to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.soap.handler.SoapBodyHandler@149453c to phase dispatch
> DEBUG - HandlerPipeline                - Invoking phase transport
> DEBUG - HandlerPipeline                - Invoking phase parse
> DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
> DEBUG - HandlerPipeline                - Invoking handler
> org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
> DEBUG - Client                         - Correlating context with ID
> 118353808056231945052852
> DEBUG - Client                         - Found correlated context with ID
> 118353808056231945052852
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.client.ClientReceiveHandler@d083 to phase service
> 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                - adding handler
> org.codehaus.xfire.client.ClientFaultConverter@14096e6 to phase user
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
> DEBUG - HandlerPipeline                - Invoking phase transport
> DEBUG - HandlerPipeline                - Invoking phase parse
> DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
> DEBUG - HandlerPipeline                - Invoking handler
> org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
> DEBUG - Client                         - Correlating context with ID
> 118353808056231945052852
> DEBUG - Client                         - Found correlated context with ID
> 118353808056231945052852
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.client.ClientReceiveHandler@1a80183 to phase service
> DEBUG - HandlerPipeline                - Invoking phase dispatch
> DEBUG - HandlerPipeline                - Invoking phase policy
> DEBUG - HandlerPipeline                - Invoking phase user
> DEBUG - HandlerPipeline                - Invoking handler
> org.codehaus.xfire.client.ClientFaultConverter in phase user
> DEBUG - HandlerPipeline                - Invoking phase pre-invoke
> DEBUG - HandlerPipeline                - Invoking phase service
> DEBUG - HandlerPipeline                - Invoking handler
> org.codehaus.xfire.client.ClientReceiveHandler in phase service
> ERROR - DefaultFaultHandler            - Fault occurred!
> org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested
> exception is org.codehaus.xfire.fault.XFireFault: The current event is not
> STAR
> T_ELEMENT
>  but 7
> org.codehaus.xfire.fault.XFireFault: The current event is not START_ELEMENT
>  but 7
>         at
> org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
>         at org.codehaus.xfire.client.Client.onReceive(Client.java:391)
>         at
> org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:147)
>         at
> org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         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(JbiProxy.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(JbiProxyFactoryBean.java:76)
>         at $Proxy0.findLectureXML(Unknown Source)
>         at
> org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
>         at
> org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
>         at
> org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
>         at
> org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
>         at
> org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         at
> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>         at
> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>         at
> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
>         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: java.lang.IllegalStateException: The current event is not
> START_ELEMENT
>  but 7
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:124)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
>         at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
>         at
> org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:129)
>         at
> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         at org.codehaus.xfire.client.Client.onReceive(Client.java:387)
>         ... 34 more
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.fault.FaultSender@e00321 to phase send
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.jaxws.handler.WebFaultHandler@ed6f0d 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
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
> org.mortbay.jetty.HttpConnection@53f89f
> DEBUG - jetty                          - servlet=jbiServlet
> DEBUG - jetty                          - chain=null
> DEBUG - jetty                          - servelet holder=jbiServlet
> DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
> DEBUG - jetty                          - continuation
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
> ---------
>
> I also tried changing the style from "document" to "wrapped" in the JSR181
> SU xbean.xml to see if it makes any difference:
>                                                      <jsr181:endpoint
> pojo="#testxmlfile"
>                                                                  
> typeMapping="jaxb2"
>                                                                  
> annotations="jsr181"
>                                                                  
> wsdlResource="classpath:service.wsdl"
>                                                                  
> style="wrapped" />
>
> but only gave me back a different type of error message:
>
> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
> org.mortbay.jetty.HttpConnection@a980fa
> DEBUG - jetty                          - servlet=jbiServlet
> DEBUG - jetty                          - chain=null
> DEBUG - jetty                          - servelet holder=jbiServlet
> DEBUG - jetty                          - continuation
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
> DEBUG - DefaultEndpoint                - Received message to null
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.DispatchServiceHandler@1e4d960 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.handler.LocateBindingHandler@17b5179 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.soap.handler.SoapBodyHandler@121f956 to phase dispatch
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.service.binding.ServiceInvocationHandler@15d8362 to phase
> service
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.service.binding.PostInvocationHandler@5c9ab5 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
> ERROR - JaxbType                       - javax.xml.bind.UnmarshalException:
> unexpected element (uri:"", local:"string"). Expected elements are
> <{http://mei
> nBeispiel.org/testxmlfile}FindLectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
> INFO  - DefaultFaultHandler            - Fault occurred!
> javax.xml.bind.UnmarshalException: unexpected element (uri:"",
> local:"string"). Expected elements are
> <{http://meinBeispiel.org/testxmlfile}FindLectureRequ
> est>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:201)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
>         at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
>         at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
>         at
> org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)
>         at
> org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
>         at
> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50)
>         at
> org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182)
>         at
> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>         at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>         at
> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>         at
> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>         at
> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
>         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: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
> local:"string"). Expected elements are
> <{http://meinBeispiel.org/testxmlfile}Find
> LectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
>         ... 32 more
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.fault.FaultSender@1654 to phase send
> DEBUG - HandlerPipeline                - adding handler
> org.codehaus.xfire.jaxws.handler.WebFaultHandler@1b9e7df 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
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
> DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
> org.mortbay.jetty.HttpConnection@a980fa
> DEBUG - jetty                          - servlet=jbiServlet
> DEBUG - jetty                          - chain=null
> DEBUG - jetty                          - servelet holder=jbiServlet
> DEBUG - jetty                          - RESPONSE /MeinBeispiel/  500
> DEBUG - jetty                          - continuation
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
>
>   


RE: Issues with simple proxy scenario

Posted by Bombjack <be...@gmail.com>.

rabi wrote:
> 
> 
> 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 */ 
> 
> 

I added the SOAPaction as suggested and according to the logging information
the external web service now responds. However, I'm getting this error now,
which doesnt make any sense to me:

DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@53f89f
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
DEBUG - DefaultEndpoint                - Received message to null
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.DispatchServiceHandler@1a9ec16 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.LocateBindingHandler@10f7612 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.soap.handler.SoapBodyHandler@10c986 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.ServiceInvocationHandler@1e9c3f to phase
service
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.PostInvocationHandler@1a40cfc 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
org.codehaus.xfire.handler.OutMessageSender@2083d 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
org.codehaus.xfire.transport.local.LocalTransport@10a5314
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@d448a1
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@ec77cb
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@acd5d4
DEBUG - DefaultTransportManager        - Registered transport
org.apache.servicemix.jsr181.xfire.JbiTransport@10a6001
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
org.codehaus.xfire.transport.local.LocalTransport@39a867
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@15f0876
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@248a0a
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@e2bc8d
DEBUG - XFireProxy                     - Method [findLectureXML]
[Architecture]
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.OutMessageSender@1d6fad7 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: 266[\r][\n]"
DEBUG - header                         - >> "SOAPAction:
http://univis.com/findLectureXML[\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">Architecture</lecture_name></findLectureXML></env:Body></env:Envelope
>"
DEBUG - header                         - << "HTTP/1.1 200 OK[\r][\n]"
DEBUG - header                         - << "Date: Wed, 04 Jul 2007 08:34:40
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,
max-age=0[\r][\n]"
DEBUG - header                         - << "Content-Type:
application/soap+xml; charset=utf-8[\r][\n]"
DEBUG - header                         - << "Content-Length: 399[\r][\n]"
DEBUG - content                        - << "<?xml version="1.0"
encoding="utf-8"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmln
s:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><findLectureXMLResponse
xmlns="http://univis.com"
><findLectureXMLResult>Architecture received and
returned.</findLectureXMLResult></findLectureXMLResponse></soap:Body></soap:Envelope>"
DEBUG - Client                         - Received message to
urn:xfire:transport:jbi:11835380805622983865035
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.LocateBindingHandler@1ba614a to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.soap.handler.SoapBodyHandler@149453c to phase dispatch
DEBUG - HandlerPipeline                - Invoking phase transport
DEBUG - HandlerPipeline                - Invoking phase parse
DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
DEBUG - Client                         - Correlating context with ID
118353808056231945052852
DEBUG - Client                         - Found correlated context with ID
118353808056231945052852
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.client.ClientReceiveHandler@d083 to phase service
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                - adding handler
org.codehaus.xfire.client.ClientFaultConverter@14096e6 to phase user
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.client.CorrelatorHandler@952527 to phase pre-dispatch
DEBUG - HandlerPipeline                - Invoking phase transport
DEBUG - HandlerPipeline                - Invoking phase parse
DEBUG - HandlerPipeline                - Invoking phase pre-dispatch
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
DEBUG - Client                         - Correlating context with ID
118353808056231945052852
DEBUG - Client                         - Found correlated context with ID
118353808056231945052852
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.client.ClientReceiveHandler@1a80183 to phase service
DEBUG - HandlerPipeline                - Invoking phase dispatch
DEBUG - HandlerPipeline                - Invoking phase policy
DEBUG - HandlerPipeline                - Invoking phase user
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.client.ClientFaultConverter in phase user
DEBUG - HandlerPipeline                - Invoking phase pre-invoke
DEBUG - HandlerPipeline                - Invoking phase service
DEBUG - HandlerPipeline                - Invoking handler
org.codehaus.xfire.client.ClientReceiveHandler in phase service
ERROR - DefaultFaultHandler            - Fault occurred!
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested
exception is org.codehaus.xfire.fault.XFireFault: The current event is not
STAR
T_ELEMENT
 but 7
org.codehaus.xfire.fault.XFireFault: The current event is not START_ELEMENT
 but 7
        at
org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at org.codehaus.xfire.client.Client.onReceive(Client.java:391)
        at
org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:147)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        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(JbiProxy.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(JbiProxyFactoryBean.java:76)
        at $Proxy0.findLectureXML(Unknown Source)
        at
org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
        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: java.lang.IllegalStateException: The current event is not
START_ELEMENT
 but 7
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:124)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
        at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
        at
org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:129)
        at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Client.onReceive(Client.java:387)
        ... 34 more
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.fault.FaultSender@e00321 to phase send
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.jaxws.handler.WebFaultHandler@ed6f0d 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
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@53f89f
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@23a559
---------

I also tried changing the style from "document" to "wrapped" in the JSR181
SU xbean.xml to see if it makes any difference:
                                                     <jsr181:endpoint
pojo="#testxmlfile"
                                                                 
typeMapping="jaxb2"
                                                                 
annotations="jsr181"
                                                                 
wsdlResource="classpath:service.wsdl"
                                                                 
style="wrapped" />

but only gave me back a different type of error message:

DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@a980fa
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
DEBUG - DefaultEndpoint                - Received message to null
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.DispatchServiceHandler@1e4d960 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.LocateBindingHandler@17b5179 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.soap.handler.SoapBodyHandler@121f956 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.ServiceInvocationHandler@15d8362 to phase
service
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.PostInvocationHandler@5c9ab5 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
ERROR - JaxbType                       - javax.xml.bind.UnmarshalException:
unexpected element (uri:"", local:"string"). Expected elements are
<{http://mei
nBeispiel.org/testxmlfile}FindLectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
INFO  - DefaultFaultHandler            - Fault occurred!
javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"string"). Expected elements are
<{http://meinBeispiel.org/testxmlfile}FindLectureRequ
est>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:201)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309)
        at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200)
        at
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)
        at
org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
        at
org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50)
        at
org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182)
        at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
        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: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"string"). Expected elements are
<{http://meinBeispiel.org/testxmlfile}Find
LectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse>
        ... 32 more
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.fault.FaultSender@1654 to phase send
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.jaxws.handler.WebFaultHandler@1b9e7df 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
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204
DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@a980fa
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - RESPONSE /MeinBeispiel/  500
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1c0b204

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


RE: Issues with simple proxy scenario

Posted by ra...@wipro.com.
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:bernhard.zettl@gmail.com] 
Sent: Wednesday, July 04, 2007 12:19 PM
To: servicemix-users@geronimo.apache.org
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
org.mortbay.jetty.HttpConnection@751d58
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a
DEBUG - DefaultEndpoint                - Received message to null
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.DispatchServiceHandler@ca671a to phase
dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.LocateBindingHandler@3714c9 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.soap.handler.SoapBodyHandler@35adc6 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.ServiceInvocationHandler@23a559 to
phase
service
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.PostInvocationHandler@3c8db9 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
org.codehaus.xfire.handler.OutMessageSender@1c330aa 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
org.codehaus.xfire.transport.local.LocalTransport@7b2e05
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@10a621a
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@aea5cd
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@773a1
DEBUG - DefaultTransportManager        - Registered transport
org.apache.servicemix.jsr181.xfire.JbiTransport@1385846
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
org.codehaus.xfire.transport.local.LocalTransport@f82fe7
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@111f9b
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@322e7d
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@8a2f6b
DEBUG - XFireProxy                     - Method [findLectureXML]
[Architektur]
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.OutMessageSender@39a867 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
org.codehaus.xfire.fault.FaultSender@1e2350a to phase send
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.jaxws.handler.WebFaultHandler@834e7 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
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a
DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@751d58
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a

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

RE: Issues with simple proxy scenario

Posted by Bombjack <be...@gmail.com>.

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/WebServiceES
> 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/WebServiceESBunivis.asmx"
/>
    </wsdl:port>
    <wsdl:port name="WebServiceESBunivisSoap12"
binding="tns:WebServiceESBunivisSoap12">
      <soap12:address
location="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.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
org.mortbay.jetty.HttpConnection@751d58
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a
DEBUG - DefaultEndpoint                - Received message to null
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.DispatchServiceHandler@ca671a to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.LocateBindingHandler@3714c9 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.soap.handler.SoapBodyHandler@35adc6 to phase dispatch
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.ServiceInvocationHandler@23a559 to phase
service
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.service.binding.PostInvocationHandler@3c8db9 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
org.codehaus.xfire.handler.OutMessageSender@1c330aa 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
org.codehaus.xfire.transport.local.LocalTransport@7b2e05
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@10a621a
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@aea5cd
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@773a1
DEBUG - DefaultTransportManager        - Registered transport
org.apache.servicemix.jsr181.xfire.JbiTransport@1385846
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
org.codehaus.xfire.transport.local.LocalTransport@f82fe7
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.dead.DeadLetterTransport@111f9b
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.SoapHttpTransport@322e7d
DEBUG - DefaultTransportManager        - Registered transport
org.codehaus.xfire.transport.http.HttpTransport@8a2f6b
DEBUG - XFireProxy                     - Method [findLectureXML]
[Architektur]
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.handler.OutMessageSender@39a867 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></env: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><faultcode>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(SoapServerMessage
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:131)
        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(JbiProxy.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(JbiProxyFactoryBean.java:76)
        at $Proxy0.findLectureXML(Unknown Source)
        at
org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
        at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: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:134)
        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
org.codehaus.xfire.fault.FaultSender@1e2350a to phase send
DEBUG - HandlerPipeline                - adding handler
org.codehaus.xfire.jaxws.handler.WebFaultHandler@834e7 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
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a
DEBUG - jetty                          - REQUEST /MeinBeispiel/ on
org.mortbay.jetty.HttpConnection@751d58
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - jetty                          - RESPONSE /MeinBeispiel/  400
DEBUG - jetty                          - continuation
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation@1e6cb2a

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.


RE: Issues with simple proxy scenario

Posted by ra...@wipro.com.
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/WebServiceES
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");"

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 */ 

-----Original Message-----
From: Bombjack [mailto:bernhard.zettl@gmail.com] 
Sent: Wednesday, July 04, 2007 8:15 AM
To: servicemix-users@geronimo.apache.org
Subject: Issues with simple proxy scenario


Hi,

I'm new to the ServiceMix world and have been trying to get the
following scenario to work, but it keeps giving me trouble:

-A web service called TestXmlFile in a jsr181 SU serves as a consumer.
-This web service calls some function provided by an external web
service named WebServiceESBunivis.

I started by creating the WSDLs for the TestXmlFile and
WebServiceESBunivis, and generated all the corresponding classes through
the "mvn generate-sources" command. The only class I then edited was
TestXmlFileImpl.java.

So far, I am able to contact and get a response from TestXmlFile.
However, as soon as TestXmlFile tries to call some function provided by
the external WebServiceESBunivis, I'm getting the error messages "Could
not invoke service" and "Error sending JBI exchange" by xfire.

Web service TestXmlFile is defined as:
-------------------------------------
@WebService(serviceName = "TestXmlFile", targetNamespace =
"http://meinBeispiel.org/testxmlfile", endpointInterface =
"org.meinbeispiel.testxmlfile.LecturePortType")
public class TestXmlFileImpl
    implements LecturePortType
{
	
    private WebServiceESBunivisSoap webServiceESBunivis;
	
    public void setWebServiceESBunivis(WebServiceESBunivisSoap
webServiceESBunivis) {
        this.webServiceESBunivis = webServiceESBunivis;
    }
    
    
    public FindLectureResponse
getSomeLecture(org.meinbeispiel.testxmlfile.FindLectureRequest
FindLectureRequest) {
	
----> String r = webServiceESBunivis.findLectureXML("Architecture");

        FindLectureResponse rep = new FindLectureResponse();
        rep.setReturnString("test");
        return rep;
-------------------------------------

The above arrow points out the line that keeps causing the error
messages.
I registered both services in the http xbean.xml and jsr181 xbean.xml
files as follows:

<!--HTTP SU-->
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:testfile="http://meinBeispiel.org/testxmlfile"
       xmlns:univis="http://univis.com">
       
  <http:endpoint service="testfile:TestXmlFile"
                 endpoint="TestXmlFilePort"
                 role="consumer"
                 locationURI="http://localhost:8192/MeinBeispiel/"
                 soap="true" />             
    
  <http:endpoint service="univis:WebServiceESBunivis"
                 endpoint="WebServiceESBunivisSoap"
                 role="provider"
                
locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis
/WebServiceESBunivis.asmx"
                 soap="true" />
</beans>


and


<!--JSR181 SU-->
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
       xmlns:univis="http://univis.com">

    <jsr181:endpoint pojo="#testxmlfile"
                     wsdlResource="classpath:service.wsdl" 
                     typeMapping="jaxb2"
                     annotations="jsr181"
                     style="document" />
                     
  <bean id="testxmlfile"
class="org.meinbeispiel.testxmlfile.TestXmlFileImpl">
    <property name="webServiceESBunivis">
      <jsr181:proxy context="#context" 
                    type="com.univis.WebServiceESBunivisSoap"
                    service="univis:WebServiceESBunivis" />
    </property>
  </bean>
  
</beans>


I probably made a relatively simple mistake somewhere, but for the life
of it I can't figure out exactly where.
Thanks in advance for your help,
Berny

--
View this message in context:
http://www.nabble.com/Issues-with-simple-proxy-scenario-tf4022130s12049.
html#a11424065
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