Stubs response

2008-01-28 Thread Nasreen Laghari
Hi All,
 
Could any 1 please help me sort this problem out. I'm still stuck at the same 
place :(
 
Regards
 
Nasreen


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Stubs responseDate: Sun, 27 Jan 
2008 16:54:58 +


But when I run webservice is printing below result : 1: HSP 1, 2: HSP 3, 3: HSP 
5  So once I will be able to return this String, I have to separate it with 
Comma.   

> Date: Sun, 27 Jan 2008 16:53:59 +0100> From: [EMAIL PROTECTED]> Subject: RE: 
> Stubs response> To: axis-user@ws.apache.org> > You save in> 
> registeredservices = hspid3.toString();> an item and overrrite it with the 
> next item in your> method!> Your return has only one item and not like you 
> expect> a list of elements!> Your registrationService should be a Array. 
> After> that you should iterate your list to get items from > > > --- Nasreen 
> Laghari <[EMAIL PROTECTED]>> schrieb:> > > Actually what i'm worried here to 
> get String value> > from that service method or convert into String. > > > > 
> > > To: [EMAIL PROTECTED]: Re: Stubs> > responseDate: Sat, 26 Jan 2008 
> 15:51:29 -0500From:> > [EMAIL PROTECTED]> > > > > > > > > > the Java2WSDL 
> utility handles this by generating an> > inner public static class for the 
> Response as> > described here for LookupDataServiceStub > > package 
> ae.ead.egovernment.core.webservice.impl;> > /* LookupDataServiceStub java> > 
> implementation */> > public class LookupDataServiceStub> > extends 
> org.apache.axis2.client.Stub {> > /** Auto generated method> > signature 
> returning GetCountriesResponse > > * @see> >> 
> ae.ead.egovernment.core.webservice.impl.LookupDataService#getCountries*/> > 
> public > >> 
> ae.ead.egovernment.core.webservice.impl.LookupDataServiceStub.GetCountriesResponse>
>  > getCountries(> > ) > > throws java.rmi.RemoteException > > {> > > > 
> ..> > }> > > > public static class> > GetCountriesResponse 
> implements> > org.apache.axis2.databinding.ADBBean > > { public static final> 
> > javax.xml.namespace.QName MY_QNAME = new> > javax.xml.namespace.QName( > > 
> "http://impl.webservice.core.egovernment.ead.ae";, > > "getCountriesResponse", 
> > > "ns3"); > > > > } //end static declaration> > 
> GetCountriesResponse..> > M-> > > > - Original Message - > > From: 
> Nasreen Laghari > > To: axis-user@ws.apache.org > > Sent: Saturday, January 
> 26, 2008 2:35 PM> > Subject: Stubs response> > Hi, I'm not sure if this is 
> the right place for this> > Problem. My webservice have following method: 
> public> > String GetAccessibleServiceList() { > > DBRetrieve one = new 
> DBRetrieve(); ArrayList> > hspid3 = one.RegisteredServices(userID); > > 
> Iterator it2 = hspid3.iterator(); while> > (it2.hasNext()) { > > 
> registeredservices = hspid3.toString(); > > System.out.println(" RETURN 
> REGISTERED HSP LIST> > >>>>>>>>>>>>>>>>> " + registeredservices); > > return 
> registeredservices; } > > return registeredservices; }This method return> > 
> the list of services from database. After creating> > the stub I have got 
> GetAccessibleServiceListResponse> > but not 
> GetAccessibleServiceList.Therefore at client> > side I made object > >> 
> AuthenticationServerStub.GetAccessibleServiceListResponse> > 
> registrationService = new> >> 
> AuthenticationServerStub.GetAccessibleServiceListResponse();> > But this 
> returns an object> >> [EMAIL PROTECTED]> > How can I get response or convert 
> this into string.> > Regards Nasreen> > > > Connect and share in new ways 
> with Windows Live. Get> > it now! > >> 
> _> > Shed 
> those extra pounds with MSN and The Biggest> > Loser!> > 
> http://biggestloser.msn.com/> > > > Heute schon einen Blick in die Zukunft 
> von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. 
> www.yahoo.de/mail> > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 

Need to know the score, the latest news, or you need your Hotmail®-get your 
"fix". Check it out. 
_
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join

RE: Stubs response

2008-01-27 Thread Nasreen Laghari
But when I run webservice is printing below result :
 
1: HSP 1, 2: HSP 3, 3: HSP 5 
 
So once I will be able to return this String, I have to separate it with Comma. 
 
 



> Date: Sun, 27 Jan 2008 16:53:59 +0100> From: [EMAIL PROTECTED]> Subject: RE: 
> Stubs response> To: axis-user@ws.apache.org> > You save in> 
> registeredservices = hspid3.toString();> an item and overrrite it with the 
> next item in your> method!> Your return has only one item and not like you 
> expect> a list of elements!> Your registrationService should be a Array. 
> After> that you should iterate your list to get items from > > > --- Nasreen 
> Laghari <[EMAIL PROTECTED]>> schrieb:> > > Actually what i'm worried here to 
> get String value> > from that service method or convert into String. > > > > 
> > > To: [EMAIL PROTECTED]: Re: Stubs> > responseDate: Sat, 26 Jan 2008 
> 15:51:29 -0500From:> > [EMAIL PROTECTED]> > > > > > > > > > the Java2WSDL 
> utility handles this by generating an> > inner public static class for the 
> Response as> > described here for LookupDataServiceStub > > package 
> ae.ead.egovernment.core.webservice.impl;> > /* LookupDataServiceStub java> > 
> implementation */> > public class LookupDataServiceStub> > extends 
> org.apache.axis2.client.Stub {> > /** Auto generated method> > signature 
> returning GetCountriesResponse > > * @see> >> 
> ae.ead.egovernment.core.webservice.impl.LookupDataService#getCountries*/> > 
> public > >> 
> ae.ead.egovernment.core.webservice.impl.LookupDataServiceStub.GetCountriesResponse>
>  > getCountries(> > ) > > throws java.rmi.RemoteException > > {> > > > 
> ..> > }> > > > public static class> > GetCountriesResponse 
> implements> > org.apache.axis2.databinding.ADBBean > > { public static final> 
> > javax.xml.namespace.QName MY_QNAME = new> > javax.xml.namespace.QName( > > 
> "http://impl.webservice.core.egovernment.ead.ae";, > > "getCountriesResponse", 
> > > "ns3"); > > > > } //end static declaration> > 
> GetCountriesResponse..> > M-> > > > - Original Message - > > From: 
> Nasreen Laghari > > To: axis-user@ws.apache.org > > Sent: Saturday, January 
> 26, 2008 2:35 PM> > Subject: Stubs response> > Hi, I'm not sure if this is 
> the right place for this> > Problem. My webservice have following method: 
> public> > String GetAccessibleServiceList() { > > DBRetrieve one = new 
> DBRetrieve(); ArrayList> > hspid3 = one.RegisteredServices(userID); > > 
> Iterator it2 = hspid3.iterator(); while> > (it2.hasNext()) { > > 
> registeredservices = hspid3.toString(); > > System.out.println(" RETURN 
> REGISTERED HSP LIST> > >>>>>>>>>>>>>>>>> " + registeredservices); > > return 
> registeredservices; } > > return registeredservices; }This method return> > 
> the list of services from database. After creating> > the stub I have got 
> GetAccessibleServiceListResponse> > but not 
> GetAccessibleServiceList.Therefore at client> > side I made object > >> 
> AuthenticationServerStub.GetAccessibleServiceListResponse> > 
> registrationService = new> >> 
> AuthenticationServerStub.GetAccessibleServiceListResponse();> > But this 
> returns an object> >> [EMAIL PROTECTED]> > How can I get response or convert 
> this into string.> > Regards Nasreen> > > > Connect and share in new ways 
> with Windows Live. Get> > it now! > >> 
> _> > Shed 
> those extra pounds with MSN and The Biggest> > Loser!> > 
> http://biggestloser.msn.com/> > > > Heute schon einen Blick in die Zukunft 
> von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. 
> www.yahoo.de/mail> > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Need to know the score, the latest news, or you need your Hotmail®-get your 
"fix".
http://www.msnmobilefix.com/Default.aspx

RE: Stubs response

2008-01-26 Thread Nasreen Laghari
Actually what i'm worried here to get String value from that service method or 
convert into String. 


To: [EMAIL PROTECTED]: Re: Stubs responseDate: Sat, 26 Jan 2008 15:51:29 
-0500From: [EMAIL PROTECTED]




the Java2WSDL utility handles this by generating an inner public static class 
for the Response as described here for LookupDataServiceStubpackage 
ae.ead.egovernment.core.webservice.impl;
/*  LookupDataServiceStub java implementation */
public class LookupDataServiceStub extends 
org.apache.axis2.client.Stub{
/** Auto generated method signature returning 
GetCountriesResponse * @see 
ae.ead.egovernment.core.webservice.impl.LookupDataService#getCountries*/
  public  
ae.ead.egovernment.core.webservice.impl.LookupDataServiceStub.GetCountriesResponse
 getCountries(
) throws 
java.rmi.RemoteException{
..
}
 
 public static class GetCountriesResponse implements 
org.apache.axis2.databinding.ADBBean {  
  public static final javax.xml.namespace.QName MY_QNAME = new 
javax.xml.namespace.QName(
"http://impl.webservice.core.egovernment.ead.ae";,
"getCountriesResponse","ns3");

}  //end static declaration GetCountriesResponse..
M-

- Original Message - 
From: Nasreen Laghari 
To: axis-user@ws.apache.org 
Sent: Saturday, January 26, 2008 2:35 PM
Subject: Stubs response
Hi, I'm not sure if this is the right place for this Problem. My webservice 
have following method: public String GetAccessibleServiceList() {
DBRetrieve one = new DBRetrieve();  ArrayList hspid3 = 
one.RegisteredServices(userID);  Iterator it2 = hspid3.iterator();  
while (it2.hasNext())  { registeredservices = 
hspid3.toString();   System.out.println(" RETURN REGISTERED HSP LIST 
>>>>>>>>>>>>>>>>> " + registeredservices);return 
registeredservices;}   return registeredservices; }This 
method return the list of services from database. After creating the stub I 
have got GetAccessibleServiceListResponse but not 
GetAccessibleServiceList.Therefore at client side I made object  
AuthenticationServerStub.GetAccessibleServiceListResponse registrationService = 
new AuthenticationServerStub.GetAccessibleServiceListResponse(); But this 
returns an object [EMAIL PROTECTED] How can I get response or convert this into 
string. Regards Nasreen

Connect and share in new ways with Windows Live. Get it now! 
_
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/

Stubs response

2008-01-26 Thread Nasreen Laghari
Hi,
 
I'm not sure if this is the right place for this Problem.
 
My webservice have following method:
 
public String GetAccessibleServiceList() {DBRetrieve one = new 
DBRetrieve();  ArrayList hspid3 = one.RegisteredServices(userID);  
Iterator it2 = hspid3.iterator();  while (it2.hasNext())  { 
registeredservices = hspid3.toString();   System.out.println(" RETURN 
REGISTERED HSP LIST > " + registeredservices);  
  return registeredservices;}   return registeredservices; }
This method return the list of services from database. After creating the stub 
I have got GetAccessibleServiceListResponse but not GetAccessibleServiceList.
Therefore at client side I made object 
 
AuthenticationServerStub.GetAccessibleServiceListResponse registrationService = 
new AuthenticationServerStub.GetAccessibleServiceListResponse();
 
But this returns an object [EMAIL PROTECTED]
 
How can I get response or convert this into string.
 
Regards
 
Nasreen
_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008

RE: Where to put Java Classes

2007-11-26 Thread Nasreen Laghari
Thank you Vaibhav,
 
I tried by putting this under WEB-INF/classes but i'm confused on retraining... 
Can I use the import as this?
 
<%@ page import="saxparser.* ">
 
 



> Date: Mon, 26 Nov 2007 07:18:21 -0800> From: [EMAIL PROTECTED]> To: 
> axis-user@ws.apache.org> Subject: Re: Where to put Java Classes> > > Hi,> You 
> need to put them under the /WEB-INF/classes directory retaining the> package 
> of your class.> > Nasreen Laghari-2 wrote:> > > > Hi,> > > > I need to ask 
> where should I suppose to keep the class files which Client> > access?> > > > 
> e.g. My Client is JSP which I have put in webapps/Axis2/axis2-web. It is> > 
> accessing a java class . Where should I put that class? or suppose I'm> > 
> using Stubs; where should I put stubs so that JSP client will call them??> > 
> > > > > Regards> > > > Nasreen> > 
> _> > Share 
> life as it happens with the new Windows Live.Download today it's> > FREE!> > 
> http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007> 
> > > > -- > View this message in context: 
> http://www.nabble.com/Where-to-put-Java-Classes-tf4875667.html#a13951419> 
> Sent from the Axis - User mailing list archive at Nabble.com.> > > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007

OMElement: Reterieve Object from webservice

2007-10-05 Thread Nasreen Laghari
Hi All,
 
 
I'm trying to get Object from webservice.
Is there any way to put Class name instead of method name in OMElement?Or Does 
any 1 know how to get Object instead of text from webservice so that I can 
access all the properties of object.
I tried making simple webservice and client. I made 2 java classes in 
webservice name as "Trial" and "Student".I have created object of Trial class 
in Student. On client-side i'm calling method in which i have created object of 
Trial.
Please find the attached copy of webservice, both java files(inside the 
webservice) and client file.
Regards
Nasreen
_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

urgent.jsp
Description: Binary data


Student.rar
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: EPR...Endpoint Reference

2007-09-30 Thread Nasreen Laghari
Hi,
 
I'm still having the same problem of Address not found. I also tried to  look 
in mail Archive but I couldn't resolve it. I got 2 reply from mailing list, 1 
said that it looks like service is not available but I can see my webservice 
working on http://localhost:8080/axis2. The other said it might be the problem 
of SOAP and he recommended me to use TCPMon. For this I need to ask how do we 
know which version of SOAP we are using? and following is the result of TCPMon. 
I have also attached Service.xml and jsp client.
 
POST /axis2/services/AutenticationServer HTTP/1.1Content-Type: text/xml; 
charset=UTF-8SOAPAction: "urn:anonOutInOp"User-Agent: Axis2Host: 
localhost:8082Transfer-Encoding: chunked
fchttp://schemas.xmlsoap.org/soap/envelope/";>http://axisversion.sample/xsd";>0
 
 
..
HTTP/1.1 200 OKServer: Apache-Coyote/1.1Content-Type: 
text/html;charset=ISO-8859-1Content-Length: 242Date: Sun, 30 Sep 2007 23:19:55 
GMT
 
 
Exception: The endpoint reference (EPR) for the Operation not found is 
http://localhost:8082/axis2/services/AutenticationServer and the WSA Action = 
urn:anonOutInOp
 

ABC12

   



> Date: Tue, 25 Sep 2007 12:11:58 -0500> From: [EMAIL PROTECTED]> To: 
> axis-user@ws.apache.org> Subject: Re: EPR...Endpoint Reference> > The 
> Exception says that you do not have a service defined for "Random".> Make 
> sure that Random is correctly defined.> > > On Tue, Sep 25, 2007 at 
> 10:02:27AM -0700, Linus Kamb wrote:> > Not sure if this is your trouble, but 
> I had similar troubles.> > > > Look at: 
> http://marc.info/?l=axis-user&m=118954790931434&w=2> > > > use TCPMON to see 
> what your http headers look like (as well as the SOAP > > message.)> > > > 
> Linus> > > > > > Nasreen Laghari wrote:> > >Hi> > > > > >Why EPR operation is 
> not found?> > > > > > > > >Exception: The endpoint reference (EPR) for the 
> Operation not found is > > >http://localhost:8080/axis2/services/Random and 
> the WSA Action = > > >urn:anonOutInOp> > > > > > > > > > > >My Coding:> > > > 
> > ><%@ page import="org.apache.axiom.om.OMAbstractFactory,> > > 
> org.apache.axiom.om.OMElement,> > > org.apache.axiom.om.OMFactory,> > > 
> org.apache.axiom.om.OMNamespace,> > > org.apache.axis2.AxisFault,> > > 
> org.apache.axis2.Constants,> > > 
> org.apache.axis2.addressing.EndpointReference,> > > 
> org.apache.axis2.client.Options,> > > org.apache.axis2.client.ServiceClient,> 
> > > org.apache.axis2.context.ConfigurationContext,> > > 
> org.apache.axis2.context.ConfigurationContextFactory" %>> > > > > ><%! 
> private OMElement createEnvelope() {> > > OMFactory fac = 
> OMAbstractFactory.getOMFactory();> > > OMNamespace omNs = > > 
> >fac.createOMNamespace("http://axisversion.sample/xsd";, "ns1");> > > 
> OMElement method = fac.createOMElement("getVersion", omNs);> > > OMElement 
> value = fac.createOMElement("myValue", omNs);> > > method.addChild(value);> > 
> > return method;> > > }> > >%>> > ><%> > > String IP = 
> "http://localhost:8080/axis2/axis2-web/trial.jsp";;> > > int lastindex = 
> IP.lastIndexOf('/');> > > IP = IP.substring(0, lastindex);> > > 
> ///axis2/axis2-web/services/version> > > IP = IP.replaceAll("axis2-web", 
> "");> > >%>> > ><% try{> > > OMElement payload = createEnvelope();> > > 
> ConfigurationContext configctx = > > 
> >ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, > 
> > >null);> > > ServiceClient client = new ServiceClient(configctx, null);> > 
> > EndpointReference targetEPR = new EndpointReference(IP + > > 
> >configctx.getServicePath() + "/Random");> > > > > > Options options = new 
> Options();> > > client.setOptions(options);> > > options.setTo(targetEPR);> > 
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);> > > OMElement 
> result = client.sendReceive(payload);> > > out.println("Result: " +result);> 
> > >> > > > > > } catch (Exception e) {> > > out.println("Exception: 
> "+e.getMessage());> > > }> > >%>> > >> > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

AutenticationServer




	
   
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>





http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

	





authenticationserver.AuthenticationServer



trial.jsp
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

ERP and .aar

2007-09-21 Thread Nasreen Laghari
Hi All, 
 
I have find out why i'm having exception on EndpointReference when I try to 
access my webservice and why is working fine with version service (Axis2 
defaullt service, HappyAxis.jsp)
 
Version service is in .aar extesion that means this object accept .aar servie.
 
Could Any1 please help me how to make .aar service and/or how can I access my 
service without converting it to .aar
 
 
   EndpointReference targetEPR = new EndpointReference(IP + 
configctx.getServicePath() + "/Random");
 
Exception:
 
The endpoint reference (EPR) for the Operation not found is 
http://localhost:8080/axis2/services/Random and the WSA Action = 
urn:anonOutInOp 
 
 
 
Thank you So much
 
Nasreen
 
 
_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907

RE: The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the

2007-09-21 Thread Nasreen Laghari
Fatima I'm having the same issue. I have access Version Service but Cant access 
my own webservice.
 
If you get any answer, can you fwd to me as well.
 
 
Thanks



> Date: Fri, 21 Sep 2007 16:13:05 +0200> From: [EMAIL PROTECTED]> To: 
> axis-user@ws.apache.org> Subject: The endpoint reference (EPR) for the 
> Operation not found is /axis2/services/mywebservice and the WSA Action = 
> null> > Hi, when I try to access to the endpoint of my web service at > 
> http://localhost:8080/axis2/services/mywebservice with Tomcat it > appears: 
> > The endpoint reference (EPR) for the Operation not found is > 
> /axis2/services/mywebservice and the WSA Action = null> , 
> nevertheless I can execute my web service. What has it > happened?> > Thanks> 
> > -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907

EPR...Endpoint Reference

2007-09-21 Thread Nasreen Laghari
Hi
 
Why EPR operation is not found?
 
 
Exception: The endpoint reference (EPR) for the Operation not found is 
http://localhost:8080/axis2/services/Random and the WSA Action = 
urn:anonOutInOp 
 
 
 
My Coding:
 
<%@ page import="org.apache.axiom.om.OMAbstractFactory, 
org.apache.axiom.om.OMElement, org.apache.axiom.om.OMFactory,   
  org.apache.axiom.om.OMNamespace, 
org.apache.axis2.AxisFault, org.apache.axis2.Constants, 
org.apache.axis2.addressing.EndpointReference, 
org.apache.axis2.client.Options, 
org.apache.axis2.client.ServiceClient, 
org.apache.axis2.context.ConfigurationContext, 
org.apache.axis2.context.ConfigurationContextFactory" %>
 
<%! private OMElement createEnvelope() {OMFactory fac = 
OMAbstractFactory.getOMFactory();OMNamespace omNs = 
fac.createOMNamespace("http://axisversion.sample/xsd";, "ns1");OMElement 
method = fac.createOMElement("getVersion", omNs);OMElement value = 
fac.createOMElement("myValue", omNs);method.addChild(value);
return method;}
%>
<% String IP = "http://localhost:8080/axis2/axis2-web/trial.jsp";; int lastindex 
= IP.lastIndexOf('/');  IP = IP.substring(0, lastindex);
///axis2/axis2-web/services/versionIP = IP.replaceAll("axis2-web", 
"");%>
<% try{ OMElement payload = createEnvelope();
ConfigurationContext configctx =  
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, 
null);ServiceClient client = new ServiceClient(configctx, null);
EndpointReference targetEPR = new EndpointReference(IP + 
configctx.getServicePath() + "/Random");Options options 
= new Options();client.setOptions(options);
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
OMElement result = client.sendReceive(payload);
out.println("Result: " +result);
} catch (Exception e) {  out.println("Exception: 
"+e.getMessage());
} 
%>
_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907

RE: Create one Web Service out of multiple java classes?

2007-09-21 Thread Nasreen Laghari
Hmm If we think logically, To make a project from java classes, we make 
multiple classes then only one class contain main method that class we make run.
 
So If you connect all classes to 1 class and in Service.xml put this class name.
 
 
 



> Date: Thu, 20 Sep 2007 03:44:33 -0700> From: [EMAIL PROTECTED]> To: 
> axis-user@ws.apache.org> Subject: RE: Create one Web Service out of multiple 
> java classes?> > > But how? Any idea? Any Link?> > > Nasreen Laghari-2 
> wrote:> > > > > > As far as I know it is possible and Axis2 support this.> > 
> > >> Date: Thu, 20 Sep 2007 01:35:06 -0700> From: [EMAIL PROTECTED]> To:> >> 
> axis-user@ws.apache.org> Subject: Create one Web Service out of multiple> >> 
> java classes?> > > Hello,> > is it possible to create one Web Service out> >> 
> of multiple java classes? Is it> possible using Axis2?> > Are there any> >> 
> other possibilities?> > Hannes> -- > View this message in context:> >> 
> http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classes--tf4486127.html#a12793022>>
>  >> Sent from the Axis - User mailing list archive at Nabble.com.> > >> >> 
> -> To> >> 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional> >> commands, e-mail: 
> [EMAIL PROTECTED]> > > 
> _> > Can you 
> find the hidden words? Take a break and play Seekadoo!> > 
> http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink> > > > -- > View 
> this message in context: 
> http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classes--tf4486127.html#a12794751>
>  Sent from the Axis - User mailing list archive at Nabble.com.> > > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Capture your memories in an online journal!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

RE: Create one Web Service out of multiple java classes?

2007-09-20 Thread Nasreen Laghari
 
As far as I know it is possible and Axis2 support this.

> Date: Thu, 20 Sep 2007 01:35:06 -0700> From: [EMAIL PROTECTED]> To: 
> axis-user@ws.apache.org> Subject: Create one Web Service out of multiple java 
> classes?> > > Hello,> > is it possible to create one Web Service out of 
> multiple java classes? Is it> possible using Axis2?> > Are there any other 
> possibilities?> > Hannes> -- > View this message in context: 
> http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classes--tf4486127.html#a12793022>
>  Sent from the Axis - User mailing list archive at Nabble.com.> > > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Can you find the hidden words?  Take a break and play Seekadoo!
http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink

RE: Windows Vista and Axis2

2007-09-20 Thread Nasreen Laghari
 
HappyAxis.jsp is working fine and I have copied the coding from it. Then I 
don't understand why my jsp is giving error. I have tried same programming code 
3 different ways. There Exceptions are following
 


When I run Jsp file from webapps/axis2/axis2-web, It gives exception
 
Exception: Can't find resource for bundle 
org.apache.axis2.i18n.ProjectResourceBundle, key outboundNoAction 
 
 

When I run JSP file from webapps/ROOT, It gives error:
 java.lang.NoClassDefFoundError: 
org/apache/ws/commons/schema/utils/NamespacePrefixList

org.apache.axis2.client.ServiceClient.createAnonymousService(ServiceClient.java:243)

org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:144)
org.apache.axis2.client.ServiceClient.(ServiceClient.java:133)
org.apache.axis2.client.ServiceClient.(ServiceClient.java:229)
org.apache.jsp.v_jsp._jspService(v_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 


When I run same coding from console as java.on first Axis2 class, It gives can 
not be initialize.
 
And Again Here is my Code:
 
<%@ page import="org.apache.axiom.om.OMAbstractFactory,  
org.apache.axiom.om.OMElement,  org.apache.axiom.om.OMFactory,  
org.apache.axiom.om.OMNamespace,  org.apache.axis2.AxisFault,  
org.apache.axis2.addressing.EndpointReference,  
org.apache.axis2.client.Options,  org.apache.axis2.client.ServiceClient" %>
 
<%  try{OMFactory fac = 
OMAbstractFactory.getOMFactory();OMNamespace ns = 
fac.createOMNamespace("http://soapinterop.org/";, "ns1");
OMElement payload = fac.createOMElement("echoString", ns);  
  payload.setText("Hello!");
  Options options = new Options();  
  ServiceClient client = new ServiceClient();   EndpointReference targetEPR 
= new EndpointReference("http://localhost:8080/axis2/services/Random";); 
   options.setTo(targetEPR);   
client.setOptions(options); //Blocking invocation   
 OMElement result = client.sendReceive(payload);
System.out.println("Sent Hello, got : " + result.toString());   
} catch (Exception e)  {   out.println("Here it comes Exception: 
"+e.getMessage());  } 
%>
<% out.println("ABC");%>




> Date: Wed, 19 Sep 2007 14:01:56 +0530> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> Subject: Re: Windows Vista and Axis2> > Nope just send me your 
> webapp.> > Thanks> Deepal> > I'm using Tomcat5.5 for JSP. I have in 
> common/lib for JSP. And for> > java I put in JDK/jre... but Neither JSP nor 
> Java accessing Axis2.jar> > > > > > Shall I send you whole Tomcat Zipped?> >> 
> > Regards> > > > Nasreen> >> >> > 
> > >> 
> > > Date: Wed, 19 Sep 2007 12:17:15 +0530> > > From: [EMAIL PROTECTED]> > > 
> To: [EMAIL PROTECTED]; axis-user@ws.apache.org> > > Subject: Re: Windows 
> Vista and Axis2> > >> > > What is the application sever you are using ? if is 
> is tomcat try to put> > > into common\lib or somewhere that your JSP can 
> access. If you send me> > > your webapp then I might me able to help you.> > 
> >> > > Thanks> > > Deepal> > > > Hi All,> > > >> > > > I'm trying to make a 
> java or JSP client to invoke webservice. I'm> > > > using Axis2 and Windows 
> Vista.> > > >> > > > Few days ago I asked about Service Object throwing 
> exception of Can> > > > not Initiliaze then Mr Deepal replied me that i was 
> using Axis1> > coding.> > > > Then I move on to Axis2 coding. But I'm having 
> the same Issue with> > > > Axis2 as well.> > > >> > > > I'm copying simple 
> code and trying to access it but seems throwing> > > > exception where i'm 
> catching all exceptions with general "Exception"> > > > class. I know it is 
> not a good practice but if i put AxisFault> > > > exception, I get Exception 
> " Exception in thread "main"> > > > java.lang.NoClassDefFoundError: 
> org.apache.axis2.AxisFault"> > > >> > > > In general terms I have realize 
> that *org.apache.axis2* 's every class> > > > is throwing an exception of 
> *java.lang.NoClassDefFoundError *whereas I> > > > have pasted 
> *axis2-kernel-1.2* into *jdk1.6.\jre\lib\ext*.> > > >> > > > What do you 
> think the problem is?> > > >> > > >> > > >> > > > *Below is coding:*> > > > 
> **> > > > **> > > > import org.apache.axiom.om.OMAbstractFactory;> > > > 
> import org.apache.axiom.om.OMElemen

Windows Vista and Axis2

2007-09-18 Thread Nasreen Laghari
Hi All,
 
I'm trying to make a java or JSP client to invoke webservice. I'm using Axis2 
and Windows Vista.
 
Few days ago I asked about Service Object throwing exception of Can not 
Initiliaze then Mr Deepal replied me that i was using Axis1 coding.
Then I move on to Axis2 coding. But I'm having the same Issue with Axis2 as 
well.
 
I'm copying simple code and trying to access it but seems throwing exception 
where  i'm catching all exceptions with general "Exception" class. I know it is 
not a good practice but if i put AxisFault exception, I get Exception " 
Exception in thread "main" java.lang.NoClassDefFoundError: 
org.apache.axis2.AxisFault"
 
In general terms I have realize that org.apache.axis2 's every class is 
throwing an exception of java.lang.NoClassDefFoundError whereas I have pasted 
axis2-kernel-1.2 into jdk1.6.\jre\lib\ext. 
 
What do you think the problem is?
 
 
 
Below is coding:
 
 
import org.apache.axiom.om.OMAbstractFactory;import 
org.apache.axiom.om.OMElement;import org.apache.axiom.om.OMFactory;import 
org.apache.axiom.om.OMNamespace;import org.apache.axis2.AxisFault;import 
org.apache.axis2.addressing.EndpointReference;import 
org.apache.axis2.client.Options;import org.apache.axis2.client.ServiceClient;
public class EchoBlockingClient {private static EndpointReference 
targetEPR = new 
EndpointReference("http://127.0.0.1:8080/axis2/services/Random";);public 
static void main(String[] args) {try {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace ns = fac.createOMNamespace("http://soapinterop.org/";, "ns1");   
 OMElement payload = fac.createOMElement("echoString", ns); 
   payload.setText("Hello!");Options 
options = new Options();ServiceClient client = new 
ServiceClient();options.setTo(targetEPR);   
 client.setOptions(options); //Blocking 
invocationOMElement result = 
client.sendReceive(payload);System.out.println("Sent 
Hello, got : " + result.toString());
} catch (Exception e) {
}
}}
 
 
_
Kick back and relax with hot games and cool activities at the Messenger Café.
http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline

Re: Calling Webservice by JSP

2007-09-17 Thread Nasreen Laghari
Ohh so it means for Axis2 I have to make object of ServiceClient

like ServiceClient servi = new ServiceClient

Any changes in Call object?


Regards

- Original Message 
From: Deepal jayasinghe <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, September 17, 2007 11:50:59 AM
Subject: Re: Calling Webservice by JSP


>
>  
> Hi,
>
> I'm using axis2 and windows vista. I'm trying to access webservice
> by jsp.
> I have pasted Axis.jar and jaxrpc.jar to Tomcat 5.5\common\lib and
> also in java/jre/lib/ext.
>
> I'm having different exception every time. Some time
> org.apache.axis.AxisClient can not be initialize, Some time
> org/apache/commons/discovery/tools/DiscoverSingleton no class Def
> found error.
>
> I have a feeling that may be axis.jar and jaxrpc.jar are
> conflicting as both have Service.class but i'm using full path of
> Service Class So I dont know Why it is creating problem.
>
> *Fowlling is the code i'm using to create the JSP Client*
>
> <%@ page
> 
> import="org.apache.axis.client.Call,org.apache.axis.client.Service,org.apache.axis.encoding.XMLType,
> org.apache.axis.utils.Options,javax.xml.rpc.ParameterMode,java.net.URL"
> %>
> <%
>
> String endpointString =
> "http://localhost:8080/axis2/services/Random?wsdl";;;
>
> Service service1 = new Service();
>
> Call callOne = (Call)service1.createCall();
> Call callone = new Call();
>
> URL endpoint = new URL(endpointString);
>
> callOne.setTargetEndpointAddress(endpoint);
>
> callOne.setOperationName("RandomNumber");
> String ret = (String)callOne.invoke(new Object[] { });
>
Seems like you are using Axis1 code , please try to use Axis2 ServiceClient.

Thanks
Deepal
>
> org.apache.a
>


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


  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


Calling Webservice by JSP

2007-09-15 Thread Nasreen Laghari


 
Hi,I'm using axis2 and windows vista. I'm trying to access webservice by jsp.I 
have pasted Axis.jar and jaxrpc.jar to Tomcat 5.5\common\lib and also in 
java/jre/lib/ext.I'm having different exception every time. Some time 
org.apache.axis.AxisClient can not be initialize, Some time 
org/apache/commons/discovery/tools/DiscoverSingleton no class Def found error.I 
have a feeling that may be axis.jar and jaxrpc.jar are conflicting as both have 
Service.class but i'm using full path of Service Class So I dont know Why it is 
creating problem.Fowlling is the code i'm using to create the JSP Client<%@ 
page 
import="org.apache.axis.client.Call,org.apache.axis.client.Service,org.apache.axis.encoding.XMLType,org.apache.axis.utils.Options,javax.xml.rpc.ParameterMode,java.net.URL"
 %><%String endpointString = 
"http://localhost:8080/axis2/services/Random?wsdl";; Service service1 = new 
Service();Call callOne = (Call)service1.createCall();Call callone = new 
Call();URL endpoint = new 
URL(endpointString);callOne.setTargetEndpointAddress(endpoint);callOne.setOperationName("RandomNumber");String
 ret = (String)callOne.invoke(new Object[] { });%><% 
out.println("Webservice Outout:"+ret); %>And following is the 
detail copy of Error:org.apache.jasper.JasperException: Could not initialize 
class 
org.apache.axis.client.AxisClientorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause javax.servlet.ServletException: Could not initialize class 
org.apache.axis.client.AxisClientorg.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)org.apache.jsp.abc_jsp._jspService(abc_jsp.java:63)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.axis.client.AxisClientorg.apache.axis.client.Service.getAxisClient(Service.java:104)org.apache.axis.client.Service.(Service.java:113)org.apache.jsp.abc_jsp._jspService(abc_jsp.java:49)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
And sometime I also get this:
exception org.apache.jasper.JasperException: 
org/apache/commons/discovery/tools/DiscoverSingleton 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause 
javax.servlet.ServletException: 
org/apache/commons/discovery/tools/DiscoverSingleton 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
 org.apache.jsp.abc_jsp._jspService(abc_jsp.java:63) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause 
java.lang.NoClassDefFoundError: 
org/apache/commons/discovery/tools/DiscoverSingleton 
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) 
java.security.AccessController.doPrivileged(Native Method) 
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) 
org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) 
org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) 
org.apache.axis.client.Service.getAxisClient(Service.java:104) 
org.apache.axis.client.Service.(Service.java:113) 
org.apache.jsp.abc_jsp._jspService(abc_jsp.java:49) 
org.apache.jasper.runtime.Ht

Jsp Client:org.apache.axis.client.AxisClient

2007-09-13 Thread Nasreen Laghari
Hi,
 
I Have made a simple JSP client which is giving me exception 
"javax.servlet.ServletException: Could not initialize class 
org.apache.axis.client.AxisClient"
The exception raised on 
Service service1 = new Service();
 
I have set Axis2 environmental variable and also have axis.jar in JDK/ext as 
well as in Tomcat/common/lib.
 
Could Any 1 please suggest me what i'm missing?
 
 
Regards
 
 
Nasreen
 
 
 
_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907