This group has been marked read only on the Sybase server. In addition, the feed between Google and the Sybase server is not currently working. If you post through Google the post will never show up on the Sybase server, and most people who answer questions in that group will never see it. Instead, you may want to access the Sybase newsgroups directly at:
http://www.sybase.com/detail_list?id=11507&pageNum=1&multi=true&show=1248
On Monday, June 25, 2012 11:41:15 AM UTC-7, martha wrote:
> I'm using PB 10.5 with EasySoap. The libraries included was
> Pbsoapclient105.pbd.
> My webservices is right and I tested with Soap UI.
> I dont'know if I have to include any other libraries...
> The error is that Castor unmarshalling exception ....The namespace
> associated with the prefix 's' could not be resolved.
>
> The code is>
>
> tns__subscriptionresponse getresp
> // Declare SoapConnection
> SoapConnection cnn
> // Declare proxy
> SubscriptionPortSoap11 proxy_obj
> long ret, lLog
>
> // Instantiated Soap Connection
> cnn = Create SoapConnection
>
> // Create proxy object
>
> ret= cnn.CreateInstance(proxy_obj, "SubscriptionPortSoap11")
> if (ret <> 0)then
> MessageBox("Fail", "Cannot create proxy "+string(ret))
> return
> end if
>
> lLog = cnn.SetOptions("SoapLog=~"C:\mySoapLog.log~"")
>
>
> //
> try
>
> string respuesta,a
>
> a= proxy_obj.subscription("1234567",
> "Martha",&
quot;msi6...@yahoo.com",respuesta)
>
>
>
> catch ( SoapException e )
> messagebox ("Error", "Cannot invoke WS el error es =>
> "+e.getdetailmessage()) // error handling
> messagebox ("Error", "Cannot invoke WS el error es =>
> "+e.getmessage()) // error handling
> end try
> destroy cnn
>
>
> My wsdl is:
>
> <wsdl:definitions xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
> xmlns:sch="
http://krams915.blogspot.com/ws/schema/oss"
> xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://
>
krams915.blogspot.com/ws/schema/oss" targetNamespace="http://
>
krams915.blogspot.com/ws/schema/oss">
> <wsdl:types>
> <xs:schema xmlns="
http://krams915.blogspot.com/ws/schema/oss"
> xmlns:xs="
http://www.w3.org/2001/XMLSchema"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="
http://krams915.blogspot.com/ws/schema/oss">
> <xs:element name="subscriptionRequest">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="id" type="xs:string"/>
> <xs:element name="name" type="xs:string"/>
> <xs:element name="email" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="subscriptionResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="code" type="xs:string"/>
> <xs:element name="description" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="subscriptionResponse">
> <wsdl:part element="tns:subscriptionResponse"
> name="subscriptionResponse"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="subscriptionRequest">
> <wsdl:part element="tns:subscriptionRequest"
> name="subscriptionRequest"></wsdl:part>
> </wsdl:message>
> <wsdl:portType name="SubscriptionPort">
> <wsdl:operation name="subscription">
> <wsdl:input message="tns:subscriptionRequest"
> name="subscriptionRequest"></wsdl:input>
> <wsdl:output message="tns:subscriptionResponse"
> name="subscriptionResponse"></wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="SubscriptionPortSoap11"
> type="tns:SubscriptionPort">
> <soap:binding style="document" transport="
http://schemas.xmlsoap.org/
> soap/http"/>
> <wsdl:operation name="subscription">
> <soap:operation soapAction=""/>
> <wsdl:input name="subscriptionRequest">
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="subscriptionResponse">
> <soap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="SubscriptionPortService">
> <wsdl:port binding="tns:SubscriptionPortSoap11"
> name="SubscriptionPortSoap11">
> <soap:address location="
http://localhost:8080/spring-ws-standalone/
> krams/ws"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>