apos not getting encoded
I can never get the terminology straight, but what I am expecting is this: nightI like to eat Mamp;Mapos;s/night but when I call adb_nightType_set_nightType( pNight, env, I like to eat MM\'s); The result is: nightI like to eat MM's/night How do I get it to encode the string? Sam
Web service without a Web Container (Tomcat)
Hello all, Is possible make (and execute) a web service using Axis2 without a web container (as Tomcat)? If yes, how can I do that? Thanks in advance, -- --fx
Re: Web service without a Web Container (Tomcat)
You can use SimpleHttp Server, if you look at Axis2 bin distribution you can find all the required scripts and documentation to do that. Thank you! Deepal Is possible make (and execute) a web service using Axis2 without a web container (as Tomcat)? If yes, how can I do that? Thanks in advance, -- Thank you! http://blogs.deepal.org http://deepal.org
Re: Generics Support / Forced Stub Generation
I thought that could not be done, because web services doesn't return java complex types, like Lists, HashMaps and etc. Could anyone clarify this question? Thanks in advance, --fx On Tue, Apr 7, 2009 at 3:22 AM, Rahul Miglani rmigl...@quark.com wrote: Hi, You can use the -xc (extraClasses) option with java2wsdl and give the fully qualified name of the MyType1 bean. This will result in generation of schema for your bean class even if it is not directly referenced in any of the operations. As for the first part of your mail I am not very sure so maybe somebody else might be able to help you out in that. Thanks and Regards, Rahul Miglani Quark Media House -Original Message- From: Rahul J [mailto:rj...@yahoo.com] Sent: Tuesday, April 07, 2009 11:42 AM To: axis-user@ws.apache.org Subject: Generics Support / Forced Stub Generation Hi, I'm using axis 1.2.1 I have a method which returns an object of type MapString, MyType1 where MyType1 is a bean. MapString, MyType1 myMethod(String a, String b) When I run java2wsdl followed by wsdl2java, this results in a HashMap object in the generated Java type. HashMap myMethod(String a, String b) Thus, the types of the Map (generics feature) are lost. Is there a way to make java2wsdl/wsdl2java to support Java 5 generics, so that the generated method also has a return type of MapString, MyType1? Secondly, because generics are not supported, the WSDL doesn't contain MyType1, so MyType1 Java type is not generated by wsdl2java. This type is defined in beanMapping as follows: beanMapping qname=myNs:MyType1 type=java:com.myCompany.MyType1 encodingStyle=/ Is there a way to force generation of this Java type (Stubs) even if any method in WSDL doesn't contain it?
Re: Web service without a Web Container (Tomcat)
On Fri, Apr 10, 2009 at 11:32 AM, Deepal jayasinghe deep...@gmail.com wrote: You can use SimpleHttp Server, if you look at Axis2 bin distribution you can find all the required scripts and documentation to do that. I saw the scripts but I don't undestand if Axis2 will (1) run it own http web server or (2) each webservice will run your own http server instance. I'd like something (2). Thanks in advance, --fx
RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING
But if you see the services.xml it already has the class parameter defined as a parameter name ServiceClass (see below), instead of as an attribute in the service/ tag. Isn't that sufficient. service name=ResponsysWSService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=com.rsys.ws.ResponsysWSServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceClasscom.rsys.ws.ResponsysWSServiceSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter Thanks Raghu -Original Message- From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] Sent: Thursday, April 09, 2009 11:56 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Setting hostname in axis2.xml - NOT WORKING Hi Raghu, You have missed 3rd step that i mentioned, you should add class parameter to your service.xml file as follows. service name=ResponsysWSService class=com.rsys.ws.ResponsysWSServiceSkeleton Hope this will resolve your problem. Thanks , On Fri, Apr 10, 2009 at 1:56 AM, Raghu Upadhyayula rupadhyay...@responsys.com wrote: Hi Sagara, Attached is my skeleton class service.xml files. Thanks Raghu -Original Message- From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] Sent: Thursday, April 09, 2009 1:37 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Setting hostname in axis2.xml - NOT WORKING Hi Raghu, Can you post your skeleton class along with service.xml file? Thanks, On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula rupadhyay...@responsys.com wrote: Hi Sagara, I have a skeleton class generated from WSDL2Java. I've changed that skeleton class to implement the ServiceLifeCycle interface implemented the startup method. Looks like that startup method is never called, because after that change also I'm getting a private IP address in the soap:address location in WSDL. I've put a debug point in the startup method the control never stopped at the debug point. Thanks Raghu -Original Message- From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] Sent: Tuesday, April 07, 2009 2:36 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Setting hostname in axis2.xml Hi Raghu , You can use same hostname parameter programatically either in service level or module level . one possible approach is given below . 1. Implement the ServiceLifeCycle interface within your service class or as a separate class . 2. set the value to hostname parameter within the startUp ( ...) method. axisService.getAxisConfiguration().addParameter(hostname, myhost.com); 3. add your LifeCycle class to service.xml file. service name=SimpleService class=LifeCycleClassName Thanks On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula rupadhyay...@responsys.com wrote: Hi, I’m using Axis2 1.4 version. I have to set the hostname in axis2.xml so that the soap:address location in the WSDL (when user types ?wsdl) uses that hostname instead of showing a IP address. The problem I have is that my webservices war file is deployed on multiple servers and I can’t manually edit each axis2.xml file for each server. Is there any option to read the server name from some properties file set it to the hostname in axis2.xml programmatically? Thanks Raghu -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/ -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/ -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
Jar files for Base64Binary AttachmentType MTOM Examples
I am having difficulty compiling the examples in axis2 1.4 , I cannot locate the jar files where the following import statements are being referenced import org.apache.ws.axis2.mtomsample.AttachmentResponse; import org.apache.ws.axis2.mtomsample.AttachmentType; import org.w3.www._2005._05.xmlmime.Base64Binary; which jar/s should I get and from where? Thanks Cyril
Hierarchy not maintained for Array Type
Hi All, I am facing a stange issue with ArrayType object. To start with below is a section of the XSD I am using: xs:element name=getPOIDocumentResponse type=tns:getPOIDocumentResponseType/ xs:complexType name=getPOIDocumentResponseType xs:sequence xs:element name=ReturnCode type=xs:string/ xs:element name=JobId type=xs:string/ xs:element name=POIDocuments minOccurs=0 xs:complexType xs:sequence xs:element ref=tns:POIDocument maxOccurs=unbounded/ /xs:sequence /xs:complexType /xs:element xs:element name=ErrorSet minOccurs=0 xs:complexType xs:sequence xs:element name=ErrorCode type=xs:string/ xs:element name=ErrorMessage type=xs:string/ /xs:sequence /xs:complexType /xs:element /xs:sequence /xs:complexType Now below is a sample Response XML generated out of it: soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getPOIDocumentResponse xmlns=http://abc.com/abcWS/; ReturnCode0/ReturnCode JobId123946058/JobId POIDocuments xsi:type=ns1:POIDocumentType xmlns:ns1=http://abc.com/abcWS/; Status/ DocumentCategory/ DocumentType/ DocumentID23222172/DocumentID IssuingCountryMEX/IssuingCountry IssuingState/ IssuingAuthorityMEXICO/IssuingAuthority IssueDate1962-09-12/IssueDate ExpiryDate/ FamilyNameNEWPOICLIENTA/FamilyName GivenNamesBARRY/GivenNames SexM/Sex BirthDate1952/06/24/BirthDate BirthCountry/ BirthPlaceMEXICO/BirthPlace RegistrationDate/ MarriageDate/ MarriagePlace/ SpouseFamilyNames/ SpouseGivenNames/ SpouseBirthDate/ SpouseBirthPlace/ SpouseNationality/ DivorceDate/ DeathDate xsi:nil=true/ PreviousFamilyName/ PreviousGivenNames/ ReasonForNameChange/ NationalityOfBearerMEX/NationalityOfBearer Parent1FamilyName/ Parent1GivenNames/ Parent1BirthDate/ Parent2FamilyName/ Parent2GivenNames/ Parent2BirthDate/ ContainsPhotographtrue/ContainsPhotograph Notes/ EndDate/ EndReason/ EndReasonNotes/ OtherDocumentType/ NationalIdentityNumber1/NationalIdentityNumber ScannedDocumentImages ScannedDocumentImage AttachedScanImageObjectJPEG/ /ScannedDocumentImage /ScannedDocumentImages Source/ Translation/ Translator/ IncludesPhoto/ ScanReference/ OfficerDerivedEndDate/ OfficerDerivedEndReason/ /POIDocuments POIDocuments xsi:type=ns2:POIDocumentType xmlns:ns2=http://abc.com/abcWS/; Status/ DocumentCategory/ DocumentTypeRANDOM DOCUMENT/DocumentType DocumentID2359/DocumentID IssuingCountryMDV/IssuingCountry IssuingState/ IssuingAuthority/ IssueDate/ ExpiryDate/ FamilyNameNEWPOICLIENTA/FamilyName GivenNamesBARRY/GivenNames Sex/ BirthDate/ BirthCountry/ BirthPlace/ RegistrationDate/ MarriageDate/ MarriagePlace/ SpouseFamilyNames/ SpouseGivenNames/ SpouseBirthDate/ SpouseBirthPlace/ SpouseNationality/ DivorceDate/ DeathDate xsi:nil=true/ PreviousFamilyName/ PreviousGivenNames/ ReasonForNameChange/ NationalityOfBearerMEX/NationalityOfBearer Parent1FamilyName/ Parent1GivenNames/ Parent1BirthDate/ Parent2FamilyName/ Parent2GivenNames/ Parent2BirthDate/ ContainsPhotographtrue/ContainsPhotograph Notes/ EndDate/ EndReason/ EndReasonNotes/ OtherDocumentType/