You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/01/28 05:57:45 UTC
svn commit: r148856 - /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java
Author: chinthaka
Date: Thu Jan 27 20:57:44 2005
New Revision: 148856
URL: http://svn.apache.org/viewcvs?view=rev&rev=148856
Log:
Added a comment.
Transport sender should be selected properly
Modified:
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java?view=diff&rev=148856&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java&r1=148855&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java&r2=148856
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/clientapi/Call.java Thu Jan 27 20:57:44 2005
@@ -54,10 +54,6 @@
this.targetEPR = EPR;
}
-
- public EndpointReference getTO(){
- return this.targetEPR;
- }
/**
* todo
@@ -139,14 +135,16 @@
public SOAPEnvelope sendReceive(SOAPEnvelope envelope) throws AxisFault {
try{
- URL url =new URL(targetEPR.getAddress());
- URLConnection urlConnect = url.openConnection();
- urlConnect.setDoOutput(true);
AxisEngine engine = new AxisEngine(registry);
MessageContext msgctx = new MessageContext(registry);
msgctx.setEnvelope(envelope);
+ // TODO : Below par is transport specific, for the time being its HTTP. It should be modified
+ // so that correct transport sender should be created here
+ URL url =new URL(targetEPR.getAddress());
+ URLConnection urlConnect = url.openConnection();
+ urlConnect.setDoOutput(true);
OutputStream out = urlConnect.getOutputStream();
msgctx.setProperty(MessageContext.TRANSPORT_DATA, out);