Re: How do I embed code to add soap:Envelope and soap:Body within a C client ???
Can you please send the full client code that you are using? Samisa... ramesh Gopal wrote: Hi, I am wanting to consume a web service (GetPrimeNumbers). In order to do this, I have written a sample C code, which generates the xml request. However, while sending the request, I get an error System.Web.Services.Protocols.SoapException: Server was unable to process request. ---gt; System.ArgumentOutOfRangeException: Length cannot be less than zero What could be the reason for this error ? My request node looks like: ns0:GetPrimeNumbers xmlns:ns0=http://microsoft.com/webservices; ns0:max23/ns0:max /ns0:GetPrimeNumbers However, I think it should look like : ?xml version=1.0 encoding=UTF-8? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:tns=http://www50.brinkster.com/vbfacileinpt/np; xmlns:xs=http://www.w3.org/2001/XMLSchema; soap:Body tns:GetPrimeNumbers tns:Max10/tns:Max /tns:GetPrimeNumbers /soap:Body /soap:Envelope How do I modify the source code to send the soap:body and soap:envelope Code listing : -- tns = axiom_namespace_create(env, http://microsoft.com/webservices;, tns); echo_om_ele = axiom_element_create(env, NULL, GetPrimeNumbers, tns, echo_om_node); text_om_ele = axiom_element_create(env, echo_om_node, max, tns, text_om_node); axiom_element_set_text(text_om_ele, env, 10, text_om_node); return echo_om_node; Rgds, Ramesh. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.7/1892 - Release Date: 1/13/2009 8:04 PM -- Samisa Abeysinghe Director, Engineering; WSO2 Inc. http://www.wso2.com/ - The Open Source SOA Company
DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource
Hi All, I noticed DataHandler.getName() always returns 'MyByteArrayDataSource' if the data source is ByteArrayDataSource from which the DataHandler has been created. Please look at the code below: FileItem file = (FileItem) value; ByteArrayDataSource bads = new ByteArrayDataSource(file.getInputStream(), application/msword); bads.setName(abc.doc); DataHandler dh = new DataHandler(bads); Now if I do, dh.getName(), it always returns 'MyByteArrayDataSource. I guess this is a bug. Whats your opinion? Chinmoy
Content id is null for MTOM attachment
Hi, I am returning a .doc file as an MTOM attachment for a service. When I do OMElement ele = retVal.getFirstElement(); OMText binaryNode = (OMText) ele.getFirstOMChild(); DataHandler dh = (DataHandler)binaryNode.getDataHandler(); it gives error content id is null.the content-type is not binary and it should be application/msword. How do get the correct content-type from this returned datahandler? Chinmoy
Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
Hi leon, I'm bit bussy with my GSOC hopefully i would be able to fix this within this week itself. I have gathered required info to work on this issue looks good. Sagara gave me some valuable info on woden parser. thanks , pradeep fernando.
Question about WSSecurity in Axis2
Hi, We need to secure our web service. We got to know about rampart module to implement. Before looking into any kind of documentation for rampart, We were in impression that we need to do changes on server side and the client will come to know about the security related information through WSDL only. When we looked into that rampart, It changed our basic perception.Rampart documentation says when using Rampart with Axis2, it must be engaged at both ends.Why so ?? If my client is Java based then we can engage rampart module on client side. What if our client is .Net client and needs to access the web service? Is it the way it works? Then, How the policy and keys related information will be communicated to client? Is there any other way we can implement WSSecurity in Axis2 ? So that we'll be doing changes on server side and client will need to look into wsdl only. I know I am putting questions marks after each sentence. But I can't help it, this is what I think as of now and expecting you people to throw some light on the issue. Thanks, Sudhir
Re: Question about WSSecurity in Axis2
Hi Sudhir, On Wed, Mar 25, 2009 at 8:58 PM, Sudhir Mongia sudhir.mon...@gmail.comwrote: Hi, We need to secure our web service. We got to know about rampart module to implement. Before looking into any kind of documentation for rampart, We were in impression that we need to do changes on server side and the client will come to know about the security related information through WSDL only. When we looked into that rampart, It changed our basic perception.Rampart documentation says when using Rampart with Axis2, it must be engaged at both ends.Why so ?? If my client is Java based then we can engage rampart module on client side. What if our client is .Net client and needs to access the web service? Nope, you can use WCF, Axis2/C, WSF/PHP or any other client. If you use Axis2/Java client then you need to engage Rampart module at the client side. Is it the way it works? Then, How the policy and keys related information will be communicated to client? The policy is annotated in the WSDL of the service. Key information has to be configured through Rampart configuration. I suggest you to take a look at following tutorials. http://wso2.org/library/3190 http://wso2.org/library/3415 thanks, Nandana -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org
Axis2 MTOM and WSSecurity (encryption)
Hello, I am wondering if more users need to use mtom and ws-security. There is an issue (3407) since dec 2007, but is still not fixed. Isn;t it one of the benefits that mtom supports ws-security? Kind regards, Erwin winmail.dat
Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
Hi Pradeep, That time frame is fantastic and works great for us! I look forward to hearing from you or seeing the JIRA status change. Thank you very much. leon - Original Message - From: Pradeep Fernando pradee...@gmail.com To: axis-user@ws.apache.org Sent: Wednesday, March 25, 2009 8:46:21 AM GMT -06:00 US/Canada Central Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi leon, I'm bit bussy with my GSOC hopefully i would be able to fix this within this week itself. I have gathered required info to work on this issue looks good. Sagara gave me some valuable info on woden parser. thanks , pradeep fernando. -- Leon S. Searl, Software/Hardware Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu
RE: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
this discussion was initiated by WS-Policy embedded in WSDL from Dennis S If memory serves he mentioned something about various transports not being handled? Is this still the case? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Wed, 25 Mar 2009 16:01:18 -0500 From: se...@ittc.ku.edu To: axis-user@ws.apache.org CC: k...@ittc.ku.edu Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi Pradeep, That time frame is fantastic and works great for us! I look forward to hearing from you or seeing the JIRA status change. Thank you very much. leon - Original Message - From: Pradeep Fernando pradee...@gmail.com To: axis-user@ws.apache.org Sent: Wednesday, March 25, 2009 8:46:21 AM GMT -06:00 US/Canada Central Subject: Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility Hi leon, I'm bit bussy with my GSOC hopefully i would be able to fix this within this week itself. I have gathered required info to work on this issue looks good. Sagara gave me some valuable info on woden parser. thanks , pradeep fernando. -- Leon S. Searl, Software/Hardware Research Engineer Information and Telecommunication Technology Center, University of Kansas Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612 Ph: 785-864-7820 Fax: 785-864-0387 http://www.ittc.ku.edu _ HotmailĀ® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009