Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PB 10.5 Web Services: The namespace associated with the prefix 's' could not be resolved.

72 views
Skip to first unread message

martha

unread,
Jun 25, 2012, 2:41:15 PM6/25/12
to
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","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>

bruce.a...@yahoo.com

unread,
Jul 18, 2012, 7:46:44 PM7/18/12
to
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&#39;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&#39;know if I have to include any other libraries...
> The error is that Castor unmarshalling exception ....The namespace
> associated with the prefix &#39;s&#39; could not be resolved.
>
> The code is&gt;
>
> 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, &quot;SubscriptionPortSoap11&quot;)
> if (ret &lt;&gt; 0)then
> MessageBox(&quot;Fail&quot;, &quot;Cannot create proxy &quot;+string(ret))
> return
> end if
>
> lLog = cnn.SetOptions(&quot;SoapLog=~&quot;C:\mySoapLog.log~&quot;&quot;)
>
>
> //
> try
>
> string respuesta,a
>
> a= proxy_obj.subscription(&quot;1234567&quot;,
> &quot;Martha&quot;,&quot;msi6...@yahoo.com&quot;,respuesta)
>
>
>
> catch ( SoapException e )
> messagebox (&quot;Error&quot;, &quot;Cannot invoke WS el error es =&gt;
> &quot;+e.getdetailmessage()) // error handling
> messagebox (&quot;Error&quot;, &quot;Cannot invoke WS el error es =&gt;
> &quot;+e.getmessage()) // error handling
> end try
> destroy cnn
>
>
> My wsdl is:
>
> &lt;wsdl:definitions xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot;
> xmlns:sch=&quot;http://krams915.blogspot.com/ws/schema/oss&quot;
> xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:tns=&quot;http://
> krams915.blogspot.com/ws/schema/oss&quot; targetNamespace=&quot;http://
> krams915.blogspot.com/ws/schema/oss&quot;&gt;
> &lt;wsdl:types&gt;
> &lt;xs:schema xmlns=&quot;http://krams915.blogspot.com/ws/schema/oss&quot;
> xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
> attributeFormDefault=&quot;qualified&quot; elementFormDefault=&quot;qualified&quot;
> targetNamespace=&quot;http://krams915.blogspot.com/ws/schema/oss&quot;&gt;
> &lt;xs:element name=&quot;subscriptionRequest&quot;&gt;
> &lt;xs:complexType&gt;
> &lt;xs:sequence&gt;
> &lt;xs:element name=&quot;id&quot; type=&quot;xs:string&quot;/&gt;
> &lt;xs:element name=&quot;name&quot; type=&quot;xs:string&quot;/&gt;
> &lt;xs:element name=&quot;email&quot; type=&quot;xs:string&quot;/&gt;
> &lt;/xs:sequence&gt;
> &lt;/xs:complexType&gt;
> &lt;/xs:element&gt;
> &lt;xs:element name=&quot;subscriptionResponse&quot;&gt;
> &lt;xs:complexType&gt;
> &lt;xs:sequence&gt;
> &lt;xs:element name=&quot;code&quot; type=&quot;xs:string&quot;/&gt;
> &lt;xs:element name=&quot;description&quot; type=&quot;xs:string&quot;/&gt;
> &lt;/xs:sequence&gt;
> &lt;/xs:complexType&gt;
> &lt;/xs:element&gt;
> &lt;/xs:schema&gt;
> &lt;/wsdl:types&gt;
> &lt;wsdl:message name=&quot;subscriptionResponse&quot;&gt;
> &lt;wsdl:part element=&quot;tns:subscriptionResponse&quot;
> name=&quot;subscriptionResponse&quot;&gt;&lt;/wsdl:part&gt;
> &lt;/wsdl:message&gt;
> &lt;wsdl:message name=&quot;subscriptionRequest&quot;&gt;
> &lt;wsdl:part element=&quot;tns:subscriptionRequest&quot;
> name=&quot;subscriptionRequest&quot;&gt;&lt;/wsdl:part&gt;
> &lt;/wsdl:message&gt;
> &lt;wsdl:portType name=&quot;SubscriptionPort&quot;&gt;
> &lt;wsdl:operation name=&quot;subscription&quot;&gt;
> &lt;wsdl:input message=&quot;tns:subscriptionRequest&quot;
> name=&quot;subscriptionRequest&quot;&gt;&lt;/wsdl:input&gt;
> &lt;wsdl:output message=&quot;tns:subscriptionResponse&quot;
> name=&quot;subscriptionResponse&quot;&gt;&lt;/wsdl:output&gt;
> &lt;/wsdl:operation&gt;
> &lt;/wsdl:portType&gt;
> &lt;wsdl:binding name=&quot;SubscriptionPortSoap11&quot;
> type=&quot;tns:SubscriptionPort&quot;&gt;
> &lt;soap:binding style=&quot;document&quot; transport=&quot;http://schemas.xmlsoap.org/
> soap/http&quot;/&gt;
> &lt;wsdl:operation name=&quot;subscription&quot;&gt;
> &lt;soap:operation soapAction=&quot;&quot;/&gt;
> &lt;wsdl:input name=&quot;subscriptionRequest&quot;&gt;
> &lt;soap:body use=&quot;literal&quot;/&gt;
> &lt;/wsdl:input&gt;
> &lt;wsdl:output name=&quot;subscriptionResponse&quot;&gt;
> &lt;soap:body use=&quot;literal&quot;/&gt;
> &lt;/wsdl:output&gt;
> &lt;/wsdl:operation&gt;
> &lt;/wsdl:binding&gt;
> &lt;wsdl:service name=&quot;SubscriptionPortService&quot;&gt;
> &lt;wsdl:port binding=&quot;tns:SubscriptionPortSoap11&quot;
> name=&quot;SubscriptionPortSoap11&quot;&gt;
> &lt;soap:address location=&quot;http://localhost:8080/spring-ws-standalone/
> krams/ws&quot;/&gt;
> &lt;/wsdl:port&gt;
> &lt;/wsdl:service&gt;
> &lt;/wsdl:definitions&gt;
0 new messages