Hi Ruwan,

 

Thanks for the information.

With the information provided by you, I am able to get proxy service worked.

Let me repeat my original question and your proposed solution so that I can
get some help with XSLT:

 

 

ORIGINAL QUESTION:

 

         "Let me explain how I developed the WebServices. I started 

 developing the code from the WSDL the ERP client provides. And it is 

 as shown in attached ERPAPISvc.wsdl (Namespace is 

 "http://developer.intuit.com";). And when I deployed the service it 

 worked fine with the client (Let say Client1).

 

         But we have 2 or more client program that can use the same 

 service.

 But that client exists in our System in different Namespace. As 

 described in MySvc.wsdl (Namespace is "http://sync.dtc.com/";).

 

         So when I tried to change the existing Namespace 

 "http://developer.intuit.com"; to "http://sync.dtc.com/"; the Client1 (build
using ERPAPISvc.wsdl) 

 stop working and throws unexpected subelement strUserName. And all 

 other client program (build using MySvc.wsdl) starts running.

 

       So what I am trying to do is make all client works with code 

 developed from same wsdl (MySvc.wsdl)  and having the namespace 

 "http://sync.dtc.com/".";

 

   

 AND THE SOLUTION PROPOSED BY YOU WAS:(I modified 2 values as per my
understading)

 

<definitions xmlns="http://ws.apache.org/ns/synapse";>

    <proxy name="$NAME_OF_THE_PROXY">

 

        <target>

            <inSequence>

                <xslt key="$XSLT_FILE_REGISTRY_KEY"/>

            </inSequence>

            <endpoint>

                <address uri=" http://localhost:8080/axis2/services/MySvc"/>

            </endpoint>

            <outSequence>

                <send/>

            </outSequence>

        </target>

        <publishWSDL uri="file:repository/ERPAPISvc.wsdl"/>

    </proxy>

</definitions>

 

 

In the XSLT you have to transform the NS from one to another. 

 

Note : I have modified the address URI to
http://localhost:8080/axis2/services/MySvc (It is been running in
JBOSS-TOMCAT server where MySvc.wsdl is been published)

And I am supposed to keep ERPAPI.wsdl in publishWSDL-uri rt? Please correct
me if I am wrong.

 

Could you please guide me in creating the XSLT & configure the same in
definitions file OR using WSO2 ESB.

 

 

Thanks & Regards,

Renjith Kalappurackal

 

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

-----Original Message-----
From: Ruwan Linton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 12, 2007 11:42 PM
To: [email protected]
Subject: Re: "Regarding Namespace Problem with an application"

 

> 

> 2) Then I made changes to synapse_sample_100.xml file as below:

> 

> 

> 

> <definitions xmlns="http://ws.apache.org/ns/synapse";>

> 

>     <proxy name="SAMPLEAPISvc">

> 

>         <target>

> 

>             <endpoint>

> 

>                 <address

> uri="http://localhost:8008/axis2/services/SAMPLEAPISvc"/>

> 

>             </endpoint>

> 

>                   <outSequence>

> 

>                         <send/>

> 

>                   </outSequence>

> 

>         </target>

> 

>         <publishWSDL

> uri="file:repository/conf/sample/resources/proxy/SAMPLEAPISvc.wsdl"/>

> 

>     </proxy>

> 

> </definitions>

 

 

 

It is better if you can switch to jdk 1.5 or *for the moment remove this

publishWSDL tag* and try again.

 

 

[main] INFO  SynapseModule - Deploying Proxy services...

> 

> java.lang.NoSuchMethodError: java.net.URLConnection.setReadTimeout(I)V

> 

>         at org.apache.synapse.config.Util.getOMElementFromURL(Util.java

> :150)

> 

>         at

 

 

 

BTW: I strongly recommend you to use WSO2ESB as Asankha pointed which will

provide a graphical interface for you to create the configuration.

 

I think Asankha has provided the answers to your questions, if you have any

more clarifications you are more than welcome.

 

[1] - http://wso2.org/projects/esb/java

 

Thanks,

Ruwan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to