NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSOAP and Windows Phone (Silverlight3)

Joined: 19 Jun 2013
Posts: 1
Reply with quote
Hello there!
I have a problem with my nusoap webservice.

I have 2 types.
The first is "Country" structure and second is array of countries.


                'id'                => array('name' => 'id', 'type' => 'xsd:int'),
                'name'              => array('name' => 'name', 'type' => 'xsd:string'),
                'flag_file'         => array('name' => 'flag_file', 'type' => 'xsd:string'),
                'id_world_region'   => array('name' => 'id_world_region', 'type' => 'xsd:int')
        $server->wsdl->addComplexType('CountriesArray','complexType','array','','SOAP-ENC:Array', array(),
                                                          array( array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:Country[]') ), 'tns:Country');   

Registered method is:

        array('clientId'=>'xsd:int', 'clientHash'=>'xsd:string'),
        $namespace,true,'document','literal','Returns array of available countries');   

Now I have a problem, because my webservice needs to be "document/literal" due to Silverlight 3.
But SOAP-ENC:Array, SOAP-ENC:arrayType is incompatible with document/literal so I cant use Arrays Sad

When adding Service Reference in VS it says:
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: Referenced type '' is only valid for encoded SOAP.

Can anyone help me with that problem?
View user's profileFind all posts by tfidosSend private message
NuSOAP and Windows Phone (Silverlight3)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

 Reply to topic