[JBoss-user] [JBoss.NET] - Problem in passing parameters to .NET Web Service using Axis

2005-10-12 Thread javaanand
Hi Thomas,
 
plz help me form this.

  
I am new to Apache axis and web services
The below code is invoking the .Net web service but it is not passing the 
values which sent to the .NET web service . 
  

 
Here is my code:
<%@ page import="java.util.Date,org.apache.axis.client.Call,
org.apache.axis.client.Service,javax.xml.namespace.QName,
java.io.IOException ,org.apache.axis.soap.SOAPConstants,
javax.xml.rpc.ParameterMode,java.net.URL,
org.apache.axis.encoding.XMLType,javax.xml.rpc.ServiceFactory;" %>


Greeting World 

 

<%= " To Day's Date :"%>
<%= new Date() %> 

<% 

try{

String endpoint = "http://192.9.200.64/WebService1/Service1.asmx";; 

Service service = new Service();
QName Qname = new QName(" 
http://tempuri.org/WebService1/Service1","HelloWorld";);
Call call = (Call) service.createCall(Qname);

call.setTargetEndpointAddress (new java.net.URL(endpoint));

call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true)); 
call.setProperty(call.SOAPACTION_URI_PROPERTY," 
http://tempuri.org/WebService1/Service1/HelloWorld";);

call.setOperationName(new 
QName("http://tempuri.org/WebService1/Service1","HelloWorld";)) ;

call.addParameter("str",XMLType.XSD_STRING,ParameterMode.IN); 
call.setReturnType(XMLType.XSD_STRING);


String msg = (String) call.invoke(new Object[]{" Anand "});
out.println ("Received : " + msg +" ");


}catch(Exception e)
{
out.println("error "+ e.getMessage());
e.printStackTrace();
}


%>




Out put for this Above is :

To Day's Date : Wed Sep 28 10:29:00 IST 2005 Received : null

  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900785#3900785

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900785


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET] - passing parameters to .Net webservice through java

2005-10-14 Thread javaanand
Hi Thomas, 

plz help me form this thinking if this problem comes in jboss what will u reply 
bez i saw  a message in jboss exactly the same give by [EMAIL PROTECTED] to you 
thomas @jboss.com
plz give reply. 

I am new to Apache axis and web services 
The below code is invoking the .Net web service but it is not passing the 
values which sent to the .NET web service . 

Here is my code: 

  | <%@ page import="java.util.Date,org.apache.axis.client.Call, 
  | org.apache.axis.client.Service,javax.xml.namespace.QName, 
  | java.io.IOException ,org.apache.axis.soap.SOAPConstants, 
  | javax.xml.rpc.ParameterMode,java.net.URL, 
  | org.apache.axis.encoding.XMLType,javax.xml.rpc.ServiceFactory;" %> 
  | <% 
  | 
  | try{ 
  | 
  | String endpoint = "http://192.9.200.64/WebService1/Service1.asmx";; 
  | 
  | Service service = new Service(); 
  | QName Qname = new QName(" 
http://tempuri.org/WebService1/Service1","HelloWorld";); 
  | Call call = (Call) service.createCall(Qname); 
  | 
  | call.setTargetEndpointAddress (new java.net.URL(endpoint)); 
  | 
  | call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true)); 
  | call.setProperty(call.SOAPACTION_URI_PROPERTY," 
http://tempuri.org/WebService1/Service1/HelloWorld";); 
  | 
  | call.setOperationName(new 
QName("http://tempuri.org/WebService1/Service1","HelloWorld";)) ; 
  | 
  | call.addParameter("str",XMLType.XSD_STRING,ParameterMode.IN); 
  | call.setReturnType(XMLType.XSD_STRING); 
  | 
  | 
  | String msg = (String) call.invoke(new Object[]{" Anand "}); 
  | out.println ("Received : " + msg +" "); 
  | 
  | 
  | }catch(Exception e) 
  | { 
  | out.println("error "+ e.getMessage()); 
  | e.printStackTrace(); 
  | } 
  | 
  | 
  | %> 
  | 
  | Out put for this Above is : 
  | 
  | To Day's Date : Wed Sep 28 10:29:00 IST 2005 Received : null 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901306#3901306

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901306


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET] - passing parameters to .Net webservice through java

2005-10-14 Thread javaanand
Hi Thomas, 

plz help me form this, thinking if this problem came in jboss what will u reply 
bez i saw  a message in jboss exactly the same give by [EMAIL PROTECTED] to you 
thomas @jboss.com
plz give reply. 

I am new to Apache axis and web services 
The below code is invoking the .Net web service but it is not passing the 
values which sent to the .NET web service . 

Here is my code: 

  | <%@ page import="java.util.Date,org.apache.axis.client.Call, 
  | org.apache.axis.client.Service,javax.xml.namespace.QName, 
  | java.io.IOException ,org.apache.axis.soap.SOAPConstants, 
  | javax.xml.rpc.ParameterMode,java.net.URL, 
  | org.apache.axis.encoding.XMLType,javax.xml.rpc.ServiceFactory;" %> 
  | <% 
  | 
  | try{ 
  | 
  | String endpoint = "http://192.9.200.64/WebService1/Service1.asmx";; 
  | 
  | Service service = new Service(); 
  | QName Qname = new QName(" 
http://tempuri.org/WebService1/Service1","HelloWorld";); 
  | Call call = (Call) service.createCall(Qname); 
  | 
  | call.setTargetEndpointAddress (new java.net.URL(endpoint)); 
  | 
  | call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true)); 
  | call.setProperty(call.SOAPACTION_URI_PROPERTY," 
http://tempuri.org/WebService1/Service1/HelloWorld";); 
  | 
  | call.setOperationName(new 
QName("http://tempuri.org/WebService1/Service1","HelloWorld";)) ; 
  | 
  | call.addParameter("str",XMLType.XSD_STRING,ParameterMode.IN); 
  | call.setReturnType(XMLType.XSD_STRING); 
  | 
  | 
  | String msg = (String) call.invoke(new Object[]{" Anand "}); 
  | out.println ("Received : " + msg +" "); 
  | 
  | 
  | }catch(Exception e) 
  | { 
  | out.println("error "+ e.getMessage()); 
  | e.printStackTrace(); 
  | } 
  | 
  | 
  | %> 
  | 
  | Out put for this Above is : 
  | 
  | To Day's Date : Wed Sep 28 10:29:00 IST 2005 Received : null 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901307#3901307

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901307


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user