-
27 Mar 2008 11:22 PM #41
Hi,Sierk,i just put your example in my apache server's root folder.and the wsdl file is just in the example you offered which named service.wsdl.
the wsdl file is :
Is there anything wrong?Code:<?xml version="1.0" encoding="utf-8"?> <s0:definitions name="CustomerServiceDefinitions" targetNamespace="http://services.local/" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://services.local/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"> <s0:types> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://services.local/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="RetrieveCustomerDetails"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="RetrieveCustomerDetailsResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomer"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomerResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="FindCustomer"> <xs:complexType> <xs:sequence> <xs:element name="CustomerSearchCriteria" type="ser:CustomerSearchType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="FindCustomerResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customers" type="ser:CustomersType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerAddresses"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerAddressesResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerContactPerson"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerContactPersonResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomerContactPerson"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomerContactPersonResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerDetails"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ModifyCustomerDetailsResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomerAddresses"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateCustomerAddressesResponse"> <xs:complexType> <xs:sequence> <xs:element name="Customer" type="ser:CustomerType" xmlns:ser="<A href="http://services.local/"/">http://services.local/"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </s0:types> <s0:message name="RetrieveCustomerDetails"> <s0:part element="s1:RetrieveCustomerDetails" name="parameters"/> </s0:message> <s0:message name="RetrieveCustomerDetailsResponse"> <s0:part element="s1:RetrieveCustomerDetailsResponse" name="parameters"/> </s0:message> <s0:message name="CreateCustomer"> <s0:part element="s1:CreateCustomer" name="parameters"/> </s0:message> <s0:message name="CreateCustomerResponse"> <s0:part element="s1:CreateCustomerResponse" name="parameters"/> </s0:message> <s0:message name="FindCustomer"> <s0:part element="s1:FindCustomer" name="parameters"/> </s0:message> <s0:message name="FindCustomerResponse"> <s0:part element="s1:FindCustomerResponse" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerAddresses"> <s0:part element="s1:ModifyCustomerAddresses" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerAddressesResponse"> <s0:part element="s1:ModifyCustomerAddressesResponse" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerContactPerson"> <s0:part element="s1:ModifyCustomerContactPerson" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerContactPersonResponse"> <s0:part element="s1:ModifyCustomerContactPersonResponse" name="parameters"/> </s0:message> <s0:message name="CreateCustomerContactPerson"> <s0:part element="s1:CreateCustomerContactPerson" name="parameters"/> </s0:message> <s0:message name="CreateCustomerContactPersonResponse"> <s0:part element="s1:CreateCustomerContactPersonResponse" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerDetails"> <s0:part element="s1:ModifyCustomerDetails" name="parameters"/> </s0:message> <s0:message name="ModifyCustomerDetailsResponse"> <s0:part element="s1:ModifyCustomerDetailsResponse" name="parameters"/> </s0:message> <s0:message name="CreateCustomerAddresses"> <s0:part element="s1:CreateCustomerAddresses" name="parameters"/> </s0:message> <s0:message name="CreateCustomerAddressesResponse"> <s0:part element="s1:CreateCustomerAddressesResponse" name="parameters"/> </s0:message> <s0:portType name="Customer"> <s0:operation name="RetrieveCustomerDetails" parameterOrder="parameters"> <s0:input message="s1:RetrieveCustomerDetails"/> <s0:output message="s1:RetrieveCustomerDetailsResponse"/> </s0:operation> <s0:operation name="CreateCustomer" parameterOrder="parameters"> <s0:input message="s1:CreateCustomer"/> <s0:output message="s1:CreateCustomerResponse"/> </s0:operation> <s0:operation name="FindCustomer" parameterOrder="parameters"> <s0:input message="s1:FindCustomer"/> <s0:output message="s1:FindCustomerResponse"/> </s0:operation> <s0:operation name="ModifyCustomerAddresses" parameterOrder="parameters"> <s0:input message="s1:ModifyCustomerAddresses"/> <s0:output message="s1:ModifyCustomerAddressesResponse"/> </s0:operation> <s0:operation name="ModifyCustomerContactPerson" parameterOrder="parameters"> <s0:input message="s1:ModifyCustomerContactPerson"/> <s0:output message="s1:ModifyCustomerContactPersonResponse"/> </s0:operation> <s0:operation name="CreateCustomerContactPerson" parameterOrder="parameters"> <s0:input message="s1:CreateCustomerContactPerson"/> <s0:output message="s1:CreateCustomerContactPersonResponse"/> </s0:operation> <s0:operation name="ModifyCustomerDetails" parameterOrder="parameters"> <s0:input message="s1:ModifyCustomerDetails"/> <s0:output message="s1:ModifyCustomerDetailsResponse"/> </s0:operation> <s0:operation name="CreateCustomerAddresses" parameterOrder="parameters"> <s0:input message="s1:CreateCustomerAddresses"/> <s0:output message="s1:CreateCustomerAddressesResponse"/> </s0:operation> </s0:portType> <s0:binding name="CustomerServiceSoapBinding" type="s1:Customer"> <s2:binding style="document" transport="<A href="http://schemas.xmlsoap.org/soap/http"/">http://schemas.xmlsoap.org/soap/http"/> <s0:operation name="RetrieveCustomerDetails"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="CreateCustomer"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="FindCustomer"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="ModifyCustomerAddresses"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="ModifyCustomerContactPerson"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="CreateCustomerContactPerson"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="ModifyCustomerDetails"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> <s0:operation name="CreateCustomerAddresses"> <s2:operation soapAction="" style="document"/> <s0:input> <s2:body parts="parameters" use="literal"/> </s0:input> <s0:output> <s2:body parts="parameters" use="literal"/> </s0:output> </s0:operation> </s0:binding> <s0:service name="CustomerServiceSoapBindingQSService"> <s0:port binding="s1:CustomerServiceSoapBinding" name="CustomerServiceSoapBindingQSPort"> <s2:address location="<A href="http://bcota03.nuon.local:5300/sierk"/">http://bcota03.nuon.local:5300/sierk"/> </s0:port> </s0:service> </s0:definitions>
[COLOR=#cc0033]
Take a rest ,it's coffee time
-
14 Apr 2008 1:54 AM #42
Url Parameter
Url Parameter
Hi,
I don't know if this issue has already been resolved, but I post this anyway.
* The parameters sent to the POST are:
- _dc = 1205342452429
- undefined = (EMPTY) ?
Obviously it is a SERVER error (500)... any ideas on why this could be happening?
I found that the axis implementation I use, will not reply to SOAP calls if any URL Parameters are passed.
I changed the Ajax.request Call in Ext.ux.SOAP.js to:
This solved the problem for me, although it removes some functionality.Code:Ext.Ajax.request({ url: this.url, callback: this.loadResponse, xmlData : xml, scope: this, extraParams: ' ', params: ' ' });Last edited by mystix; 14 Apr 2008 at 2:17 AM. Reason: use [code][/code] tags
-
30 Jul 2008 12:42 AM #43
Hello all, Im having what seems like a really stupid problem.
I can not get my data to go into the store.. when I inspect the dom my data is in my reader. my code is as follows:
Can anyone see a blatant error in my reader? the columns declared in my reader are all my columns that are returned my the webservice.Code:Ext.onReady(function(){ Ext.namespace('Soap'); Soap.o = { wsproxy : "http://localhost:1994/webservice/messagingservice.asmx", url : "http://localhost:1994/webservice/messagingservice.asmx", disableCaching: false, method : "GetNewMessages", params : [{ value : '1', name : 'param1' }] } Soap.proxy = new Ext.ux.soap.SoapProxy(Soap.o); Soap.reader = new Ext.ux.soap.SoapReader( ['Content', 'RecipientId', 'SenderId', 'EventId', 'MessageId'] ) Soap.store = new Ext.data.Store({ proxy: Soap.proxy, reader: Soap.reader }); Soap.store.load(); var grid = new Ext.grid.GridPanel({ store: Soap.store, columns: [ {header: "cont", width: 135, dataIndex: 'Content', sortable: true}, {header: "Recipient", width: 80, dataIndex: 'RecipientId', sortable: true}, {header: "sender", width: 110, dataIndex: 'SenderId', sortable: true}, {header: "champ event id", width: 75, dataIndex: 'ChampionshipSeasonEventId', sortable: true} ], renderTo:'rightBottom', width:430, height:180 }); });
##### Update #####
I have found that the above works in FF2 but NOT FF3 and IE6 or 7.
Is it known issue that this little library only works in FF2?? or have I made a mistake in my code? I have edited the SoapProxy.js to be like this
would the changes I have made there broken things ?? I do not think that they would have.Code:/* * Private method thats builds an XML envelope */ getXmlEnvelope : function(method, params, namespaces) { var soapHeaderBody = "xmlns='http://messaging.mysite.com/'"; var paramxml = ""; for (i = 0; i < Soap.o.params.length; i++){ paramxml = paramxml + "<" + Soap.o.params[i].name + ">" + Soap.o.params[i].value + "</" + Soap.o.params[i].name + ">"; } var sr = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<soap12:Envelope " + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " + "xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">" + "<soap12:Body>" + "<" + this.method + " " + soapHeaderBody + ">" + paramxml + "</" + this.method + ">" + "</soap12:Body></soap12:Envelope>"; return sr; },
Thank you,
-
30 Jul 2008 12:05 PM #44
After stepping through the code several times using Visual studio, this is what I can see is happening:
In the parseSoapRequest method (shown below), req.responseXML is not poulated in ie7, ie6 or FF3. ( it works in FF2). req.responseText does contain the correct xml though. It's as though its failing to parse my xml in these browsers. I have listed my xml below as well.
Does anyone have any ideas why this may be the case?
The xml that is returned:Code:parseSoapRequest: function(req) { var o = null; var nd = this.getElementsByTagName(req.responseXML, this.method + "Response"); if(nd.length == 0) { if(req.responseXML.getElementsByTagName("faultcode").length > 0) { return new Error(500, req.responseXML.getElementsByTagName("faultstring")[0].childNodes[0].nodeValue); } } else o = this.node2object(nd[0]); return o; },
Code:<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetNewMessagesResponse xmlns="http://xxx.com/"><GetNewMessagesResult><Message><ChampionshipSeasonEventId>1</ChampionshipSeasonEventId><MessageId>3</MessageId><Content>hello lee</Content><RecipientId>c99d3b96-2efc-43e3-9ddb-fa12aaad5009</RecipientId><SenderId>9c61fa7a-3e2e-42d3-a10a-806b352e03fe</SenderId></Message><Message><ChampionshipSeasonEventId>1</ChampionshipSeasonEventId><MessageId>4</MessageId><Content>saa</Content><RecipientId>c99d3b96-2efc-43e3-9ddb-fa12aaad5009</RecipientId><SenderId>9c61fa7a-3e2e-42d3-a10a-806b352e03fe</SenderId></Message></GetNewMessagesResult></GetNewMessagesResponse></soap:Body></soap:Envelope>
Last edited by sneddo; 31 Jul 2008 at 1:19 AM. Reason: post code in [code][/code] tags. refer to http://extjs.com/forum/misc.php?do=bbcode
-
1 Sep 2008 4:26 AM #45
Hi,
im using the SOAP Package along with WebObjects Axis Server and I am very happy with it.
I had to patch the following method to get it working with IE:
Code:Ext.ux.soap.SoapReader.prototype.getElementsByTagName = function(aDocument, tagName) { try{ try { return aDocument.selectNodes(".//*[local-name()=\""+ tagName +"\"]"); } catch (anException) { var searchResult =aDocument.evaluate(".//*[local-name()=\""+ tagName +"\"]", aDocument, null, XPathResult.ANY_TYPE, null); return new Array(searchResult.iterateNext()); } }catch(anotherException) { // Had to do this quick and dirty for my purposes: // return aDocument.getElementsByTagName("soapenv:"+tagName); // This should be more general return aDocument.getElementsByTagName(tagName); } }
-
18 Nov 2008 7:34 PM #46
This is a good tool for call webservice by Ext,
but, can everybody give me a finally version?
Email: BinB.Wang@ge.com
thanks
-
20 Nov 2008 4:52 AM #47
Ext.ux.data.soap.WsdlContainer.loadWsdlCallback issue
Ext.ux.data.soap.WsdlContainer.loadWsdlCallback issue
Hi
This - when it works - will be every ExtJs/.NET devs dream!
I'm having an issue when it's parsing the WSDL on:
SpecificallyCode:Ext.ux.data.soap.WsdlContainer.loadWsdlCallback
My WSDL looks like the following:Code:namespaces.push(xml.getElementsByTagName(tagname)[0].getAttribute("targetNamespace"));
I have no xsdCode:<?xml version="1.0"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> <s:element name="GetHierarchyTopLevel"> <s:complexType/> </s:element> [...]
chema - is there anyone who has this workign with .NET and has overcome this?
w://
-
19 Aug 2012 9:23 PM #48
I am new to Sencha Touch 2.x App development.
Please help me using SoapExt.zip in my project to consume a web service.
Thanks in Advance!
-
14 Sep 2012 10:20 PM #49
I m trying out with this code. It is giving me error - Result of Expression 'Ext.Data' is not an object in SoapReader.js, SoapConnection.js and SoapProxy.js.
Why so?
-
15 Sep 2012 2:14 AM #50
SoapExt
SoapExt
Along with these .js file i need to use any other api or library? as it is showing refernce error of 'Ext' variable not recognised.
Please help how to use these .js
Thanx.


Reply With Quote