Thanks a lot for this information.

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

Renjith

I think Ruwan will answer your questions.. but if you are really new to 
Synapse and find it difficult to write the configuration manually or 
understand the concepts, you could try the WSO2 ESB which basically adds 
an enhanced registry and a graphical UI to Synapse. It is Synapse that 
does everything else, and the configurations are compatible.
> I tried to set up a proxy service as a first step. These are steps I
> followed.
>
> 1) I started my service using JBOSS-Tomcat Server and it is working on the
> port "8080". The wsdl is visible using
> "http://localhost:8008/axis2/services/SAMPLEAPISvc?wsdl";
>   
Now, Synapse by default tries to run on port 8080, and if its 
unavailable, would pick 8081! (the exact port would be printed on the 
console at startup)
> 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>
>
> 3) Then I tried starting Synapse using the command synapse.bat -sample 100
>
> 4) This is giving me an error in Synapse console as below:
>
> C:\synapse-1.0\bin>synapse.bat -sample 100
> [main] INFO  SynapseModule - Deploying Proxy services...
> java.lang.NoSuchMethodError: java.net.URLConnection.setReadTimeout(I)V
>
> Could you please guide me in solving this basic issue? I'm sure that I did
> something terribly wrong.
>   
Seems like you found a place in the code thats not JDK 1.4 compatible, 
and you are using a JDK 1.4. Could you please file a JIRA for this, so 
that we could fix this ASAP for the upcoming 1.0.1 release? Ideally we 
should not try to set a read timeout if the JDK does not support it. In 
the meantime, if you could switch to a JDK 1.5 it would be better - and 
faster too.
> Note: One Important question I should ask about proxy service is that, in
my
> case I cannot make change in code or the way it generated. Only thing I
can
> change is the uri to access the Service. Right now the URI that is
accessing
> by client is set to 
>
> http://localhost: <http://localhost:8008/axis2/services/SAMPLEAPISvc>
> 8008/axis2/services/SAMPLEAPISvc , where 8008 is the port that is using by
> Synpase. Is this the right way to make Synapse a mediator for service that
> is been running in port 8080? Because in my case I cannot use
> -Daddurl=<addressingEPR> -Dtrpurl=<synapse> for the client because the
> client is a windows program and I have no way to control it. 
>   
The EPR of a proxy would be of the form 
http://<host>:<port>/soap/<proxyname>.. I do not think I understand your 
question properly.. but hopefully this and the fact that I mentioned 
about the port 8080 being already in use by JBoss would help you figure 
things out.

asankha

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




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

Reply via email to