hi Rabi,
I want Xfire client to invoke my method in the exposed WSDL
how will the client looklike?
This is my WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:ws="http://caxchange.nci.nih.gov/ws";
xmlns:common="http://caxchange.nci.nih.gov/ws/common";
xmlns:caxchange="http://caxchange.nci.nih.gov/ws/routingandworkflow";
targetNamespace="http://caxchange.nci.nih.gov/ws"; name="routingandworkflow">
        <wsdl:types>
                <xs:schema
targetNamespace="http://caxchange.nci.nih.gov/ws/routingandworkflow";
elementFormDefault="qualified" attributeFormDefault="qualified"
version=".1">
                        <xs:element name="RoutingAndWorkflowRequest"
type="caxchange:RoutingAndWorkflowRequest"/>
                        <xs:complexType name="RoutingAndWorkflowRequest">
                                <xs:sequence>
                                        <xs:element name="ExternalIdentifier" 
type="xs:string"/>
                                        <xs:element name="Credentials" 
type="caxchange:Credentials"/>
                                        <xs:element 
name="ProcessingInstructions"
type="caxchange:ProcessingInstructions"/>
                                        <xs:element name="Payload" 
type="caxchange:MessagePayload"/>
                                        <xs:element name="Properties" 
type="caxchange:MessageProperties"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:complexType name="MessagePayload">
                                <xs:sequence>
                                        <xs:element name="FormatDefinition" 
type="xs:anyURI" minOccurs="0"/>
                                        <xs:element name="PayloadType" 
type="caxchange:PayloadTypes"/>
                                        <xs:choice>
                                                <xs:element name="Text" 
type="xs:string"/>
                                                <xs:element name="Object" 
type="xs:base64Binary"/>
                                        </xs:choice>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:complexType name="PayloadTypes">
                                <xs:choice>
                                        <xs:element name="GenericType" 
type="xs:string"/>
                                        <xs:element name="KnownType" 
type="caxchange:KnownTypes"/>
                                </xs:choice>
                        </xs:complexType>
                        <xs:simpleType name="KnownTypes">
                                <xs:restriction base="xs:string">
                                        <xs:enumeration 
value="Lombardi_Cancer_Center_CSV"/>
                                </xs:restriction>
                        </xs:simpleType>
                        <xs:complexType name="ProcessingInstructions">
                                <xs:sequence>
                                        <xs:element name="Workflow" 
type="caxchange:Workflow"/>
                                        <xs:element name="Endpoints" 
maxOccurs="unbounded" type="xs:string"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:complexType name="Workflow">
                                <xs:sequence>
                                        <xs:element name="Identifier" 
type="xs:string" nillable="false"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:element name="Acknowledgement" 
type="caxchange:Acknowledgement"/>
                        <xs:complexType name="Acknowledgement">
                                <xs:sequence>
                                        <xs:element name="Status" 
type="caxchange:AcknowledgementStatuses"
nillable="false"/>
                                        <xs:element name="Error" 
type="caxchange:ErrorDetails" minOccurs="0"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:simpleType name="AcknowledgementStatuses">
                                <xs:restriction base="xs:string">
                                        <xs:enumeration 
value="MessageReceived"/>
                                        <xs:enumeration value="ErrorOccurred"/>
                                </xs:restriction>
                        </xs:simpleType>
                        <xs:complexType name="Credentials">
                                <xs:sequence>
                                        <xs:element name="UserName" 
type="xs:string"/>
                                        <xs:element name="Password" 
type="xs:string"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:complexType name="MessageProperties">
                                <xs:sequence>
                                        <xs:element name="Property" 
type="caxchange:Property"  minOccurs="0"
maxOccurs="unbounded"/>
                                </xs:sequence>
                        </xs:complexType>                       
                        <xs:complexType name="Property">
                                <xs:sequence>
                                        <xs:element name="Key" 
type="xs:string"/>
                                        <xs:element name="Value" 
type="xs:string"/>
                                </xs:sequence>
                        </xs:complexType>
                        
                        <xs:element name="ErrorDetails" 
type="caxchange:ErrorDetails"/>
                        <xs:complexType name="ErrorDetails">
                                <xs:sequence>
                                        <xs:element name="ErrorCode" 
type="caxchange:ErrorCodes"/>
                                        <xs:element name="ErrorDescription" 
type="xs:string"/>
                                </xs:sequence>
                        </xs:complexType>
                        <xs:simpleType name="ErrorCodes">
                                <xs:restriction base="xs:string">
                                        <xs:enumeration 
value="AuthorizationFailure"/>
                                        <xs:enumeration 
value="AuthenticationFailure"/>
                                        <xs:enumeration 
value="ApplicationError"/>
                                </xs:restriction>
                        </xs:simpleType>
                </xs:schema>
        </wsdl:types>
        <wsdl:message name="ErrorMessage">
                <wsdl:part name="ErrorMessage" 
element="caxchange:ErrorDetails"/>
        </wsdl:message>
        <wsdl:message name="RoutingAndWorkflowRequestMessage">
                <wsdl:part name="RoutingAndWorkflowRequest"
type="caxchange:RoutingAndWorkflowRequest"/>
        </wsdl:message>
        <wsdl:message name="AcknowledgementResponseMessage">
                <wsdl:part name="AcknowledgementResponse"
type="caxchange:Acknowledgement"/>
        </wsdl:message>
        <wsdl:portType name="CTMSIRoutingService">
                <wsdl:operation name="executeRoutingOrWorkflow">
                        <wsdl:input 
message="ws:RoutingAndWorkflowRequestMessage"/>
                        <wsdl:output 
message="ws:AcknowledgementResponseMessage"/>
                        <wsdl:fault name="ErrorMessage" 
message="ws:ErrorMessage"/>
                </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name="NewBinding" type="ws:CTMSIRoutingService">
                <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="executeRoutingOrWorkflow">
                        <soap:operation
soapAction="http://caxchange.nci.nih.gov/ws/executeRoutingOrWorkflow"/>
                        <wsdl:input>
                                <soap:body use="literal" 
namespace="http://caxchange.nci.nih.gov/ws"/>
                        </wsdl:input>
                        <wsdl:output>
                                <soap:body use="literal" 
namespace="http://caxchange.nci.nih.gov/ws"/>
                        </wsdl:output>
                        <wsdl:fault name="ErrorMessage">
                                <soap:fault name="ErrorMessage" use="literal"/>
                        </wsdl:fault>
                </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name="CTMSIRoutingService">
                <wsdl:port name="CTMSIRoutingServiceSoapPort" 
binding="ws:NewBinding">
                        <soap:address 
location="http://localhost:8192/caxchange/ctmsirouting"/>
                </wsdl:port>
        </wsdl:service>
</wsdl:definitions>

Regards,
Raj

I am using JSR181 wsdl-first http consumer and servicemix bean 
I want to send message form jsr to bean that echos back the request
I am able to get wsdl at url:http://localhost:8192/ctmsirouting/main.wsdl

rabi wrote:
> 
> 
> OK .. Let us  know your usecase and someone from the usergroup can help
> you.. 
> 
> Else you have a look at the wsdl-first sample that comes with
> servicemix. This is a contarct first wsdl sample using jsr181.
> 
> If you have a pojo(annotated) that you want to expose as a WS using
> JSR181 and ServiceMix then you can look at
> 
> http://incubator.apache.org/servicemix/servicemix-jsr181.html
>     
> 
> 
> Regards,
> Rabi Mishra, 
> http://rabisblog.blogspot.com/
> c++; /* this makes c bigger but returns the old value */ 
> -----Original Message-----
> From: Erik Allais [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 27, 2007 3:23 PM
> To: [email protected]
> Subject: RE: Conception Problem about Service Consumer
> 
> 
> to say the truth i dont know where are all the maven archetype i use
> this because i saw it in a tutorial...
> 
> im lost
> 
> 
> rabi wrote:
>> 
>> 
>> Erik,
>>  
>> You have taken the wsdl-first  maven archetype to create your SU. FYI,
> 
>> this assumes that you have the wsdl(contract) with you to create 
>> implementation from it using <wsgen>.
>>  
>> Btw, what are you trying to do? contract first or code first.. Do you 
>> have a POJO (annotated) that you want to expose it using servicemix.
>>  
>> Regards,
>> Rabi Mishra
>> http://rabisblog.blogspot.com/
>> 
>> ________________________________
>> 
>> From: Erik Allais [mailto:[EMAIL PROTECTED]
>> Sent: Tue 6/26/2007 10:41 PM
>> To: [email protected]
>> Subject: Re: Conception Problem about Service Consumer
>> 
>> 
>> 
>> 
>> i try to implement the example on this page :
>> http://incubator.apache.org/servicemix/servicemix-jsr181.html
>> 
>> but i have a lot of interrogation about some step for example the 
>> generation of the xbean.xml...
>> i need to reference a POJO class but where i must put this pojo on my 
>> archive
>> 
>> i use maven to create the archetype like this :
>> mvn archetype:create \
>>         -DarchetypeGroupId=org.apache.servicemix.tooling \
>>
> -DarchetypeArtifactId=servicemix-jsr181-wsdl-first-service-unit \
>>         -DarchetypeVersion=3.1-incubating \
>>         -DgroupId=com.examples.MyFirstService \
>>         -DartifactId=my-first-service-su \
>>       
>> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repos
>> itory
>> 
>> i got the followind directory:
>> pom.xml
>> src 
>>      \ main
>>                   \ ressources
>>                                          \ service.wsdl
>>                                          \ xbean.xml
>>      \ target
>>                    \ generated-sources
>> 
>> i change the xbean.xml but where i must put my pojo class?
>> note: dont understand why i dont have my package (com.examples) 
>> created
>> 
>> 
>> thanks for help
>> Erik,
>> 
>> 
>> Erik Allais wrote:
>>>
>>> hi,
>>> i must make a service provider that consume WS on an external 
>>> Application
>>> (SugarCRM)
>>>
>>> the illustration:
>>>
>>>
>>> ESB<===>[WS: Service provider]------>consume WS------->[Application:
>>> SugarCRM]
>>>                                                             
>>> <------return result-----------
>>>
>>>
>>> my service provider inside servicemix must use a SOAP client to 
>>> invoke the WS of my external application There is a component which 
>>> can do that or i must use a SOAP client like XFire or Axis?
>>>
>>> note : All the WS i must invoke (sugarCRM) need complex type 
>>> parameter
>>>
>>> Why this implementation??
>>> Because i need to make an abstract layer over the WS of my 
>>> application (bufferised some process for example)
>>>
>>> thanks,
>>>
>>> Erik
>>>
>>>
>>>
>>>
>>>
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977
>> 822s12049.html#a11309858 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
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf397782
> 2s12049.html#a11321489
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977822s12049.html#a13412283
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to