I am not using any tool like AXIS.
Just using JDeveloper to create client stub and also got the WSDL service discription from server side,that WSDL generated based on .net.So it had used document style.
Is there any interoperability problem between .net and java?
When i make request to "https" service that's showed the exception.
I put my code snippet of client stub here:
//Initialization
m_httpConnection = new OracleSOAPHTTPConnection();
props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "username");
props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "password");
props.put(OracleSOAPHTTPConnection.PROXY_HOST, "host address");
props.put(OracleSOAPHTTPConnection.PROXY_PORT, "port no");
m_httpConnection.setProperties(props);
private String _endpoint = "https://URL/URN";
public String getEndpoint()
{
return _endpoint;
}
public void setEndpoint(String endpoint)
{
_endpoint = endpoint;
}
public String functionName(String Parameters) throws Exception
{
URL endpointURL = new URL(_endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
String wrappingName = "functionName";
String targetNamespace = "https: URL";
Vector requestData = new Vector();
requestData.add(new Object[] {"WSDL element", parameter passed by function});
requestData.add(new Object[] {"WSDL element", parameter passed by function});
......
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "https://URL/URN(ie.functionName)", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (String)fromElement((Element)responseData.elementAt(0), java.lang.String.class);
}
Please help me to resolve.