You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Brian Taylor <br...@briantaylor.us> on 2009/09/02 16:05:00 UTC

CXF BC: SOAP Binding Example

Does anyone know of where I can get either an example of or instructions on
how to set up SOAP Binding in CXF for the CXF BC? I couldn't find them on
the Apache CXF site ( http://cwiki.apache.org/CXF20DOC/configuration.html
http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of page).
-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
This doesn't matter...I took the WSDL from the JConsole, created a new wsdl
file with it, and used SOAP UI with it with success, so that is not the
problem.


Brian Taylor wrote:
> 
> Also notice that the namespace 'srv' was changed to 'ns1' in the import
> and on the message, but not in the XML Schema. Why is the CXF BC making
> these changes and why not across the entire WSDL?
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25280297.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Also notice that the namespace 'srv' was changed to 'ns1' in the import and
on the message, but not in the XML Schema. Why is the CXF BC making these
changes and why not across the entire WSDL?
-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25279745.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
This is the WSDL returned by JConsole (notice the duplicate <soap:body> and
<soap:address> tags. Why would the CXF BC do this and could this be causing
the problem?

<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://domain.services.softechnics.com/"
xmlns:ns2="http://schemas.xmlsoap.org/soap/http"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://domain.services.softechnics.com/Fulfillment/Fulfillment"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="FulfillmentAndRequesterForPortTypeFulfillmentBusinessProcessPlkService"
targetNamespace="http://domain.services.softechnics.com/Fulfillment/Fulfillment">
  <wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:Requester="http://domain.services.softechnics.com/Fulfillment/Requester"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:com="http://domain.services.softechnics.com/"
xmlns:datExt="http://www.softechnics.com/dataExtensions"
xmlns:diag="http://domain.services.softechnics.com/Fulfillment"
xmlns:dom="http://domain.services.softechnics.com/"
xmlns:pnlk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
attributeFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="http://domain.services.softechnics.com/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://domain.services.softechnics.com/Fulfillment/Fulfillment"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://www.w3.org/2001/XMLSchema-instance"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://docs.oasis-open.org/wsbpel/2.0/plnktype"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://schemas.xmlsoap.org/wsdl/soap/"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://www.softechnics.com/dataExtensions"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://docs.oasis-open.org/wsbpel/2.0/varprop"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://domain.services.softechnics.com/Fulfillment/Fulfillment"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://www.w3.org/2006/05/addressing/wsdl"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://domain.services.softechnics.com/Fulfillment"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://docs.oasis-open.org/wsbpel/2.0/process/executable"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://www.w3.org/XML/1998/namespace"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://schemas.xmlsoap.org/wsdl/"/>
<import xmlns="http://www.w3.org/2001/XMLSchema"
namespace="http://domain.services.softechnics.com/Fulfillment/Requester"/>
			
			<xs:include schemaLocation="DomainModel.xsd"/>
			
			<xs:element name="initiateFulfillmentBusinessProcess"
type="dom:initiateFulfillmentBusinessProcess"/>
			<xs:complexType name="initiateFulfillmentBusinessProcess">
				<xs:sequence>
					<xs:element minOccurs="0" name="TransferDocument"
type="dom:TransferDocument"/>
				</xs:sequence>
			</xs:complexType>
			
			<xs:element name="initiateFulfillmentWorkflow"
type="dom:initiateFulfillmentWorkflow"/>
			<xs:complexType name="initiateFulfillmentWorkflow">
				<xs:sequence>
					<xs:element minOccurs="0" name="TransferDocument"
type="dom:TransferDocument"/>
				</xs:sequence>
			</xs:complexType>
				
			<xs:element name="completeFulfillmentWorkflow"
type="dom:completeFulfillmentWorkflow"/>
			<xs:complexType name="completeFulfillmentWorkflow">
				<xs:sequence>
					<xs:element minOccurs="0" name="TransferDocument"
type="dom:TransferDocument"/>
				</xs:sequence>
			</xs:complexType>
			
		</xs:schema>
  </wsdl:types>
  <wsdl:message name="initiateFulfillmentBusinessProcess">
    <wsdl:part element="ns1:TransferDocument" name="TransferDocument">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="initiateFulfillmentWorkflow">
    <wsdl:part element="ns1:TransferDocument" name="TransferDocument">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="completeFulfillmentWorkflow">
    <wsdl:part element="ns1:TransferDocument" name="TransferDocument">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="FulfillmentBusinessProcess">
    <wsdl:operation name="initiateFulfillmentBusinessProcess">
      <wsdl:input message="tns:initiateFulfillmentBusinessProcess"
name="initiateFulfillmentBusinessProcess"
wsaw:action="http://domain.services.softechnics.com/FulfillmentBusinessProcess/initiateFulfillmentBusinessProcess">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="initiateFulfillmentWorkflow">
      <wsdl:input message="tns:initiateFulfillmentWorkflow"
name="initiateFulfillmentWorkflow"
wsaw:action="http://domain.services.softechnics.com/FulfillmentBusinessProcess/initiateFulfillmentWorkflow">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="completeFulfillmentWorkflow">
      <wsdl:input message="tns:completeFulfillmentWorkflow"
name="completeFulfillmentWorkflow"
wsaw:action="http://domain.services.softechnics.com/FulfillmentBusinessProcess/completeFulfillmentWorkflow">
    </wsdl:input>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="FulfillmentBusinessProcessServiceSoapBindingHTTP"
type="tns:FulfillmentBusinessProcess">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsaw:UsingAddressing wsdl:required="false"/>
    <wsdl:operation name="initiateFulfillmentBusinessProcess">
      <soap:operation
soapAction="http://domain.services.softechnics.com/FulfillmentBusinessProcess/initiateFulfillmentBusinessProcess"
style="document"/>
      <wsdl:input name="initiateFulfillmentBusinessProcess">
        <soap:body use="literal"/>
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="initiateFulfillmentWorkflow">
      <soap:operation
soapAction="http://domain.services.softechnics.com/FulfillmentBusinessProcess/initiateFulfillmentWorkflow"
style="document"/>
      <wsdl:input name="initiateFulfillmentWorkflow">
        <soap:body use="literal"/>
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="completeFulfillmentWorkflow">
      <soap:operation
soapAction="http://domain.services.softechnics.com/FulfillmentBusinessProcess/completeFulfillmentWorkflow"
style="document"/>
      <wsdl:input name="completeFulfillmentWorkflow">
        <soap:body use="literal"/>
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service
name="FulfillmentAndRequesterForPortTypeFulfillmentBusinessProcessPlkService">
    <wsdl:port
binding="tns:FulfillmentBusinessProcessServiceSoapBindingHTTP"
name="Fulfillment_for_RequesterPort">
      <soap:address
location="http://localhost:8086/ode/processes/BusinessProcesses/Fulfillment/Fulfillment/Requester/FulfillmentAndRequesterForPortTypeFulfillmentBusinessProcessPlk"/>
      <soap:address
location="http://localhost:8086/ode/processes/BusinessProcesses/Fulfillment/Fulfillment/Requester/FulfillmentAndRequesterForPortTypeFulfillmentBusinessProcessPlk"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


Brian Taylor wrote:
> 
> I was able to successfully collapse the two wsdls into one (attached [1]),
> copied the service name and endpoint to the xbean.xml (attached [2]), and
> tried again with the same NPE on line 199 as the result.
> 
> [1] 
> http://www.nabble.com/file/p25278637/FulfillmentBusinessProcessService.wsdl
> FulfillmentBusinessProcessService.wsdl 
> 
> [2]  http://www.nabble.com/file/p25278637/xbean.xml xbean.xml 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25279591.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
I was able to successfully collapse the two wsdls into one (attached [1]),
copied the service name and endpoint to the xbean.xml (attached [2]), and
tried again with the same NPE on line 199 as the result.

[1] 
http://www.nabble.com/file/p25278637/FulfillmentBusinessProcessService.wsdl
FulfillmentBusinessProcessService.wsdl 

[2]  http://www.nabble.com/file/p25278637/xbean.xml xbean.xml 
-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25278637.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I suspect your service/endpoint name for your cxf bc provider is not  
match the one used in your wsdl, what's your xbean.xml for cxf bc  
provider?

Freeman
On 2009-9-3, at 下午10:17, Brian Taylor wrote:

>
> Hi,
>
> Thanks again Freeman.
>
> I'm calling the CXF BC Provider service from the EIP router as the  
> last call
> in a Pipeline Route; I'm not writing any code. Everything is working
> correctly until an EIP Pipeline route service makes the final In- 
> Only call
> (and yes the Provider service is also In-Only) to this CXF BC  
> Provider when
> it throws a NPE at line 199. It looks like the 'ei' variable is not  
> getting
> instantiated, I assume when the SU is initialized. Attached is the  
> part of
> the log file [1] showing the SU initialization, Abstract WSDL[2], and
> Concrete WSDL[3]. Is anything unusual with it, besides having the  
> Binding
> definition in the Abstract WSDL? If I cut the Binding out of the  
> Abstract
> and paste it in the Concrete WSDL I get some weird error saying it  
> can't
> parse the prolog so I've kept it like it is.
>
> Respectfully,
> Brian
>
> [1] http://www.nabble.com/file/p25277060/Copy%2Bof%2Bservicemix.log
> Copy+of+servicemix.log
>
> [2]  http://www.nabble.com/file/p25277060/FulfillmentBusinessProcess.wsdl
> FulfillmentBusinessProcess.wsdl
>
> [3]  http://www.nabble.com/file/p25277060/Fulfillment-Fulfillment.wsdl
> Fulfillment-Fulfillment.wsdl
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> Take a look at CxfBcProviderTest[1] as an example.
>> [1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
>>
>> Freeman
>> On 2009-9-3, at 上午5:31, Brian Taylor wrote:
>>
>>>
>>> Sorry to bounce this, but I'm still getting a NPE on line 199. Any
>>> idea what
>>> could result in the 'ei' variable becoming null?
>>>
>>>
>>> Brian Taylor wrote:
>>>>
>>>> Thanks Freeman for the quick response.
>>>>
>>>> I'm attempting to route a message via the NMR to an external  
>>>> service
>>>> through the CXF BC. I've configured the Provider in the BC and
>>>> placed the
>>>> WSDLs (Concrete and imported Abstract) in ServiceMix's root (I'm
>>>> unable to
>>>> get the SUs to use the <classpath> in their xbean.xml). I'm getting
>>>> a NPE
>>>> at runtime (process()) in class CxfBcProvider.java at line 199. It
>>>> appears
>>>> the ei (EndpointInformation) variable was not instantiated during
>>>> service
>>>> unit loading on ServiceMix startup.
>>>>
>>>> Looking in the debug statements in the ServiceMix console upon
>>>> startup I
>>>> noticed the following lines which might be some useful indicator  
>>>> but
>>>> unsure:
>>>>
>>>> DEBUG - ConfigurerImpl - Could not find a definition for bean  
>>>> with id
>>>> [port uri here].http-conduit - no injection will be performed
>>>> DEBUG - ConfigurerImpl - Could not find a definition for bean  
>>>> with id
>>>> [service uri here] - no injection will be performed
>>>> ...
>>>> DEBUG - HTTPConduit - Conduit [port uri here].http-conduit has been
>>>> configured for plain http.
>>>> ...
>>>> DEBUG - CxfBcComponent - Service unit initialized
>>>>
>>>> Respectfully,
>>>> Brian
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> You may need take a look at the cxf-wsdl-first example shipped
>>>>> with kit.
>>>>>
>>>>> Freeman
>>>>> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
>>>>>
>>>>>>
>>>>>> Does anyone know of where I can get either an example of or
>>>>>> instructions on
>>>>>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find
>>>>>> them on
>>>>>> the Apache CXF site (
>>>>>> http://cwiki.apache.org/CXF20DOC/configuration.html
>>>>>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of
>>>>>> page).
>>>>>> -- 
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>>>>>> Sent from the ServiceMix - User mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Freeman Fang
>>>>> ------------------------
>>>>> Open Source SOA: http://fusesource.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25266124.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25277060.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Hi,

Thanks again Freeman.

I'm calling the CXF BC Provider service from the EIP router as the last call
in a Pipeline Route; I'm not writing any code. Everything is working
correctly until an EIP Pipeline route service makes the final In-Only call
(and yes the Provider service is also In-Only) to this CXF BC Provider when
it throws a NPE at line 199. It looks like the 'ei' variable is not getting
instantiated, I assume when the SU is initialized. Attached is the part of
the log file [1] showing the SU initialization, Abstract WSDL[2], and
Concrete WSDL[3]. Is anything unusual with it, besides having the Binding
definition in the Abstract WSDL? If I cut the Binding out of the Abstract
and paste it in the Concrete WSDL I get some weird error saying it can't
parse the prolog so I've kept it like it is.

Respectfully,
Brian

[1] http://www.nabble.com/file/p25277060/Copy%2Bof%2Bservicemix.log
Copy+of+servicemix.log 

[2]  http://www.nabble.com/file/p25277060/FulfillmentBusinessProcess.wsdl
FulfillmentBusinessProcess.wsdl 

[3]  http://www.nabble.com/file/p25277060/Fulfillment-Fulfillment.wsdl
Fulfillment-Fulfillment.wsdl 


Freeman Fang wrote:
> 
> Hi,
> 
> Take a look at CxfBcProviderTest[1] as an example.
> [1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
> 
> Freeman
> On 2009-9-3, at 上午5:31, Brian Taylor wrote:
> 
>>
>> Sorry to bounce this, but I'm still getting a NPE on line 199. Any  
>> idea what
>> could result in the 'ei' variable becoming null?
>>
>>
>> Brian Taylor wrote:
>>>
>>> Thanks Freeman for the quick response.
>>>
>>> I'm attempting to route a message via the NMR to an external service
>>> through the CXF BC. I've configured the Provider in the BC and  
>>> placed the
>>> WSDLs (Concrete and imported Abstract) in ServiceMix's root (I'm  
>>> unable to
>>> get the SUs to use the <classpath> in their xbean.xml). I'm getting  
>>> a NPE
>>> at runtime (process()) in class CxfBcProvider.java at line 199. It  
>>> appears
>>> the ei (EndpointInformation) variable was not instantiated during  
>>> service
>>> unit loading on ServiceMix startup.
>>>
>>> Looking in the debug statements in the ServiceMix console upon  
>>> startup I
>>> noticed the following lines which might be some useful indicator but
>>> unsure:
>>>
>>> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
>>> [port uri here].http-conduit - no injection will be performed
>>> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
>>> [service uri here] - no injection will be performed
>>> ...
>>> DEBUG - HTTPConduit - Conduit [port uri here].http-conduit has been
>>> configured for plain http.
>>> ...
>>> DEBUG - CxfBcComponent - Service unit initialized
>>>
>>> Respectfully,
>>> Brian
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> You may need take a look at the cxf-wsdl-first example shipped  
>>>> with kit.
>>>>
>>>> Freeman
>>>> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
>>>>
>>>>>
>>>>> Does anyone know of where I can get either an example of or
>>>>> instructions on
>>>>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find
>>>>> them on
>>>>> the Apache CXF site (
>>>>> http://cwiki.apache.org/CXF20DOC/configuration.html
>>>>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of
>>>>> page).
>>>>> -- 
>>>>> View this message in context:
>>>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25266124.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25277060.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Take a look at CxfBcProviderTest[1] as an example.
[1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java

Freeman
On 2009-9-3, at 上午5:31, Brian Taylor wrote:

>
> Sorry to bounce this, but I'm still getting a NPE on line 199. Any  
> idea what
> could result in the 'ei' variable becoming null?
>
>
> Brian Taylor wrote:
>>
>> Thanks Freeman for the quick response.
>>
>> I'm attempting to route a message via the NMR to an external service
>> through the CXF BC. I've configured the Provider in the BC and  
>> placed the
>> WSDLs (Concrete and imported Abstract) in ServiceMix's root (I'm  
>> unable to
>> get the SUs to use the <classpath> in their xbean.xml). I'm getting  
>> a NPE
>> at runtime (process()) in class CxfBcProvider.java at line 199. It  
>> appears
>> the ei (EndpointInformation) variable was not instantiated during  
>> service
>> unit loading on ServiceMix startup.
>>
>> Looking in the debug statements in the ServiceMix console upon  
>> startup I
>> noticed the following lines which might be some useful indicator but
>> unsure:
>>
>> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
>> [port uri here].http-conduit - no injection will be performed
>> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
>> [service uri here] - no injection will be performed
>> ...
>> DEBUG - HTTPConduit - Conduit [port uri here].http-conduit has been
>> configured for plain http.
>> ...
>> DEBUG - CxfBcComponent - Service unit initialized
>>
>> Respectfully,
>> Brian
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> You may need take a look at the cxf-wsdl-first example shipped  
>>> with kit.
>>>
>>> Freeman
>>> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
>>>
>>>>
>>>> Does anyone know of where I can get either an example of or
>>>> instructions on
>>>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find
>>>> them on
>>>> the Apache CXF site (
>>>> http://cwiki.apache.org/CXF20DOC/configuration.html
>>>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of
>>>> page).
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> -- 
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25266124.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Sorry to bounce this, but I'm still getting a NPE on line 199. Any idea what
could result in the 'ei' variable becoming null?


Brian Taylor wrote:
> 
> Thanks Freeman for the quick response.
> 
> I'm attempting to route a message via the NMR to an external service
> through the CXF BC. I've configured the Provider in the BC and placed the
> WSDLs (Concrete and imported Abstract) in ServiceMix's root (I'm unable to
> get the SUs to use the <classpath> in their xbean.xml). I'm getting a NPE
> at runtime (process()) in class CxfBcProvider.java at line 199. It appears
> the ei (EndpointInformation) variable was not instantiated during service
> unit loading on ServiceMix startup.
> 
> Looking in the debug statements in the ServiceMix console upon startup I
> noticed the following lines which might be some useful indicator but
> unsure:
> 
> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
> [port uri here].http-conduit - no injection will be performed
> DEBUG - ConfigurerImpl - Could not find a definition for bean with id
> [service uri here] - no injection will be performed
> ...
> DEBUG - HTTPConduit - Conduit [port uri here].http-conduit has been
> configured for plain http.
> ...
> DEBUG - CxfBcComponent - Service unit initialized
> 
> Respectfully,
> Brian
> 
> 
> 
> Freeman Fang wrote:
>> 
>> Hi,
>> 
>> You may need take a look at the cxf-wsdl-first example shipped with kit.
>> 
>> Freeman
>> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
>> 
>>>
>>> Does anyone know of where I can get either an example of or  
>>> instructions on
>>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find  
>>> them on
>>> the Apache CXF site (
>>> http://cwiki.apache.org/CXF20DOC/configuration.html
>>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of  
>>> page).
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>> 
>> 
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25266124.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Thanks Freeman for the quick response.

I'm attempting to route a message via the NMR to an external service through
the CXF BC. I've configured the Provider in the BC and placed the WSDLs
(Concrete and imported Abstract) in ServiceMix's root (I'm unable to get the
SUs to use the <classpath> in their xbean.xml). I'm getting a NPE at runtime
(process()) in class CxfBcProvider.java at line 199. It appears the ei
(EndpointInformation) variable was not instantiated during service unit
loading on ServiceMix startup.

Looking in the debug statements in the ServiceMix console upon startup I
noticed the following lines which might be some useful indicator but unsure:

DEBUG - ConfigurerImpl - Could not find a definition for bean with id [port
uri here].http-conduit - no injection will be performed
DEBUG - ConfigurerImpl - Could not find a definition for bean with id
[service uri here] - no injection will be performed
...
DEBUG - HTTPConduit - Conduit [port uri here].http-conduit has been
configured for plain http.
...
DEBUG - CxfBcComponent - Service unit initialized

Respectfully,
Brian



Freeman Fang wrote:
> 
> Hi,
> 
> You may need take a look at the cxf-wsdl-first example shipped with kit.
> 
> Freeman
> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
> 
>>
>> Does anyone know of where I can get either an example of or  
>> instructions on
>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find  
>> them on
>> the Apache CXF site ( http://cwiki.apache.org/CXF20DOC/configuration.html
>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of  
>> page).
>> -- 
>> View this message in context:
>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25259587.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Ok, this works when I use SOAPUI tool kit as the client. Now, is there a
Provider example?


Brian Taylor wrote:
> 
> Freeman,
> 
> I deployed the SA in that example and using the supplied client, clicked
> the 'send' button with this returning in the result pane: STATUS: 0
> 
> Is that what is supposed to be returned?
> 
> 
> Freeman Fang wrote:
>> 
>> Hi,
>> 
>> You may need take a look at the cxf-wsdl-first example shipped with kit.
>> 
>> Freeman
>> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
>> 
>>>
>>> Does anyone know of where I can get either an example of or  
>>> instructions on
>>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find  
>>> them on
>>> the Apache CXF site (
>>> http://cwiki.apache.org/CXF20DOC/configuration.html
>>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of  
>>> page).
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>> 
>> 
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25264841.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Brian Taylor <br...@briantaylor.us>.
Freeman,

I deployed the SA in that example and using the supplied client, clicked the
'send' button with this returning in the result pane: STATUS: 0

Is that what is supposed to be returned?


Freeman Fang wrote:
> 
> Hi,
> 
> You may need take a look at the cxf-wsdl-first example shipped with kit.
> 
> Freeman
> On 2009-9-2, at 下午10:05, Brian Taylor wrote:
> 
>>
>> Does anyone know of where I can get either an example of or  
>> instructions on
>> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find  
>> them on
>> the Apache CXF site ( http://cwiki.apache.org/CXF20DOC/configuration.html
>> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of  
>> page).
>> -- 
>> View this message in context:
>> http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25264641.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: CXF BC: SOAP Binding Example

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You may need take a look at the cxf-wsdl-first example shipped with kit.

Freeman
On 2009-9-2, at 下午10:05, Brian Taylor wrote:

>
> Does anyone know of where I can get either an example of or  
> instructions on
> how to set up SOAP Binding in CXF for the CXF BC? I couldn't find  
> them on
> the Apache CXF site ( http://cwiki.apache.org/CXF20DOC/configuration.html
> http://cwiki.apache.org/CXF20DOC/configuration.html  - Bottom of  
> page).
> -- 
> View this message in context: http://www.nabble.com/CXF-BC%3A-SOAP-Binding-Example-tp25258212p25258212.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com