1 21 package org.objectweb.jonas.ws.axis; 22 23 import java.util.Enumeration ; 24 import java.util.Properties ; 25 26 import javax.xml.namespace.QName ; 27 import javax.xml.rpc.Stub ; 28 29 import org.apache.axis.client.Call; 30 31 36 public class JCall extends Call { 37 38 41 public JCall(JService service) { 42 super(service); 43 } 44 45 52 public void setPortName(QName portName) { 53 super.setPortName(portName); 54 JService service = (JService) this.getService(); 55 Properties propCall = service.getCallProperties(portName.getLocalPart()); 56 if (propCall != null) { 57 for (Enumeration e = propCall.propertyNames(); e.hasMoreElements();) { 58 String name = (String ) e.nextElement(); 59 Object value = propCall.getProperty(name); 60 if (Call.SESSION_MAINTAIN_PROPERTY.equals(name)) { 61 value = Boolean.valueOf((String ) value); 62 } 63 this.setProperty(name, value); 64 65 } 66 } 67 Properties propStub = service.getStubProperties(portName.getLocalPart()); 68 if (propStub != null) { 69 for (Enumeration e = propStub.propertyNames(); e.hasMoreElements();) { 70 String name = (String ) e.nextElement(); 71 if (!Stub.ENDPOINT_ADDRESS_PROPERTY.equals(name)) { 72 Object value = propStub.getProperty(name); 73 if (Call.SESSION_MAINTAIN_PROPERTY.equals(name)) { 74 value = Boolean.valueOf((String ) value); 75 } 76 this.setProperty(name, value); 77 } 78 } 79 80 } 81 } 82 } 83 | Popular Tags |