Web Services setSubscriberBinding

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

But you please post a more detailed error description, i.e. what did you do to execute the webservice, especially since you use not Java but PHP? Thank you!
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Ok, I've posted the code I've used for accessing the webservices in PHP, I'm sorry for the lengthy post, but I can't upload the SOAP_Fault_Object, so I'm just including it here.

Code: Select all

<?php
require_once("SOAP/Server.php");
require_once("SOAP/Disco.php");

$wsdl = 'http://myurl.net:8080/ws.wsdl';

$WSDL = new SOAP_WSDL($wsdl);
$client = $WSDL->getProxy();

print_r($result = $client->addSubscriber('guest','xxxxxxxxx',true, 'email',true,'email','test@testinguser.com'));

?>

Code: Select all

SOAP_Fault Object
(
    [error_message_prefix] => 
    [mode] => 1
    [level] => 1024
    [ code ] => soapenv:Server.userException
    [message] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
    [userinfo] => stdClass Object
        (
            [hostname] => earth.myurl.net
        )

    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => C:\Program Files\PHP\PEAR\SOAP\Fault.php
                    [line] => 63
                    [function] => PEAR_Error
                    [class] => PEAR_Error
                    [type] => ->
                    [args] => Array
                        (
                            [0] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
                            [1] => soapenv:Server.userException
                            [2] => 
                            [3] => 
                            [4] => stdClass Object
                                (
                                    [hostname] => earth.myurl.net
                                )

                        )

                )

            [1] => Array
                (
                    [file] => C:\Program Files\PHP\PEAR\SOAP\Base.php
                    [line] => 129
                    [function] => SOAP_Fault
                    [class] => SOAP_Fault
                    [object] => SOAP_Fault Object
 *RECURSION*
                    [type] => ->
                    [args] => Array
                        (
                            [0] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
                            [1] => soapenv:Server.userException
                            [2] => 
                            [3] => stdClass Object
                                (
                                    [hostname] => earth.myurl.net
                                )

                            [4] => 
                            [5] => 
                        )

                )

            [2] => Array
                (
                    [file] => C:\Program Files\PHP\PEAR\SOAP\Client.php
                    [line] => 812
                    [function] => _raiseSoapFault
                    [class] => SOAP_Base_Object
                    [object] => WebService_EmmWebService_PortService_emm_webservice Object
                        (
                            [_endpoint] => http://myurl.net:8080/emm_webservice
                            [_portName] => 
                            [_endpointType] => 
                            [xml] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                            [wire] => 
                            [_last_request] => 
                            [_last_response] => 
                            [_options] => Array
                                (
                                    [trace] => 
                                    [input] => parse
                                    [result] => parse
                                    [parameters] => 
                                    [namespace] => urn:agnitas-webservice
                                    [soapaction] => 
                                    [style] => rpc
                                    [use] => encoded
                                )

                            [_encoding] => UTF-8
                            [headersIn] => 
                            [_proxy_params] => Array
                                (
                                )

                            [_soap_transport] => SOAP_Transport_HTTP Object
                                (
                                    [headers] => Array
                                        (
                                            [User-Agent] => PEAR-SOAP 0.11.0-beta
                                            [Host] => myurl.net
                                            [Content-Type] => text/xml; charset=UTF-8
                                            [Content-Length] => 793
                                            [SOAPAction] => ""
                                            [Connection] => close
                                        )

                                    [cookies] => Array
                                        (
                                        )

                                    [timeout] => 4
                                    [result_content_type] => text/xml
                                    [result_headers] => Array
                                        (
                                            [server] => Resin/3.0.19
                                            [content-type] => text/xml; charset=utf-8
                                            [date] => Fri, 22 Feb 2008 21
                                        )

                                    [result_cookies] => Array
                                        (
                                        )

                                    [url] => http://myurl.net:8080/emm_webservice
                                    [urlparts] => Array
                                        (
                                            [scheme] => http
                                            [host] => myurl.net
                                            [port] => 8080
                                            [path] => /emm_webservice
                                        )

                                    [incoming_payload] => HTTP/1.0 500 Internal Server Error
Server: Resin/3.0.19
Content-Type: text/xml; charset=utf-8
Date: Fri, 22 Feb 2008 21:00:40 GMT

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                                    [outgoing_payload] => POST /emm_webservice HTTP/1.0
User-Agent: PEAR-SOAP 0.11.0-beta
Host: myurl.net
Content-Type: text/xml; charset=UTF-8
Content-Length: 793
SOAPAction: ""
Connection: close

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:ns4="urn:agnitas-webservice"
 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>

<ns4:addSubscriber>
<in0 xsi:type="xsd:string">guest</in0>
<in1 xsi:type="xsd:string">xxxxxxxxxx</in1>
<in2 xsi:type="xsd:boolean">true</in2>
<in3 xsi:type="xsd:string">email</in3>
<in4 xsi:type="xsd:boolean">true</in4>
<in5 xsi:type="xsd:string">email</in5>
<in6 xsi:type="xsd:string">test@testinguser.com</in6></ns4:addSubscriber>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

                                    [encoding] => UTF-8
                                    [result_encoding] => UTF-8
                                    [attachments] => 
                                    [_userAgent] => PEAR-SOAP 0.11.0-beta
                                    [_XMLSchema] => Array
                                        (
                                            [0] => http://www.w3.org/2001/XMLSchema
                                            [1] => http://www.w3.org/1999/XMLSchema
                                        )

                                    [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
                                    [_typemap] => Array
                                        (
                                            [http://www.w3.org/2001/XMLSchema] => Array
                                                (
                                                    [string] => string
                                                    [boolean] => boolean
                                                    [float] => float
                                                    [double] => float
                                                    [decimal] => float
                                                    [duration] => integer
                                                    [dateTime] => string
                                                    [time] => string
                                                    [date] => string
                                                    [gYearMonth] => integer
                                                    [gYear] => integer
                                                    [gMonthDay] => integer
                                                    [gDay] => integer
                                                    [gMonth] => integer
                                                    [hexBinary] => string
                                                    [base64Binary] => string
                                                    [normalizedString] => string
                                                    [token] => string
                                                    [language] => string
                                                    [NMTOKEN] => string
                                                    [NMTOKENS] => string
                                                    [Name] => string
                                                    [NCName] => string
                                                    [ID] => string
                                                    [IDREF] => string
                                                    [IDREFS] => string
                                                    [ENTITY] => string
                                                    [ENTITIES] => string
                                                    [integer] => integer
                                                    [nonPositiveInteger] => integer
                                                    [negativeInteger] => integer
                                                    [long] => string
                                                    [int] => integer
                                                    [short] => integer
                                                    [byte] => string
                                                    [nonNegativeInteger] => integer
                                                    [unsignedLong] => integer
                                                    [unsignedInt] => integer
                                                    [unsignedShort] => integer
                                                    [unsignedByte] => integer
                                                    [positiveInteger] => integer
                                                    [anyType] => string
                                                    [anyURI] => string
                                                    [QName] => string
                                                )

                                            [http://www.w3.org/1999/XMLSchema] => Array
                                                (
                                                    [i4] => integer
                                                    [int] => integer
                                                    [boolean] => boolean
                                                    [string] => string
                                                    [double] => float
                                                    [float] => float
                                                    [dateTime] => string
                                                    [timeInstant] => string
                                                    [base64Binary] => string
                                                    [base64] => string
                                                    [ur-type] => string
                                                )

                                            [http://schemas.xmlsoap.org/soap/encoding/] => Array
                                                (
                                                    [base64] => string
                                                    [array] => array
                                                    [Array] => array
                                                    [Struct] => array
                                                )

                                        )

                                    [_defaultObjectClassname] => stdClass
                                    [_namespaces] => Array
                                        (
                                            [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
                                            [http://www.w3.org/2001/XMLSchema] => xsd
                                            [http://www.w3.org/2001/XMLSchema-instance] => xsi
                                            [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
                                        )

                                    [_namespace] => 
                                    [_xmlEntities] => Array
                                        (
                                            [&] => &
                                            [<] => <
                                            [>] => >
                                            ['] => &apos;
                                            ["] => "
                                        )

                                    [_doconversion] => 
                                    [_attachments] => Array
                                        (
                                        )

                                    [_wsdl] => 
                                    [_section5] => 1
                                    [_auto_translation] => 
                                    [_type_translation] => Array
                                        (
                                        )

                                    [_encodings] => Array
                                        (
                                            [0] => ISO-8859-1
                                            [1] => US-ASCII
                                            [2] => UTF-8
                                        )

                                    [_myfaultcode] => HTTP
                                    [fault] => 
                                    [_debug] => 
                                    [_default_error_mode] => 
                                    [_default_error_options] => 
                                    [_default_error_handler] => 
                                    [_error_class] => SOAP_Fault
                                    [_expected_errors] => Array
                                        (
                                        )

                                    [errno] => 0
                                    [errmsg] => 
                                    [response] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                                )

                            [_XMLSchema] => Array
                                (
                                    [0] => http://www.w3.org/2001/XMLSchema
                                    [1] => http://www.w3.org/1999/XMLSchema
                                )

                            [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
                            [_typemap] => Array
                                (
                                    [http://www.w3.org/2001/XMLSchema] => Array
                                        (
                                            [string] => string
                                            [boolean] => boolean
                                            [float] => float
                                            [double] => float
                                            [decimal] => float
                                            [duration] => integer
                                            [dateTime] => string
                                            [time] => string
                                            [date] => string
                                            [gYearMonth] => integer
                                            [gYear] => integer
                                            [gMonthDay] => integer
                                            [gDay] => integer
                                            [gMonth] => integer
                                            [hexBinary] => string
                                            [base64Binary] => string
                                            [normalizedString] => string
                                            [token] => string
                                            [language] => string
                                            [NMTOKEN] => string
                                            [NMTOKENS] => string
                                            [Name] => string
                                            [NCName] => string
                                            [ID] => string
                                            [IDREF] => string
                                            [IDREFS] => string
                                            [ENTITY] => string
                                            [ENTITIES] => string
                                            [integer] => integer
                                            [nonPositiveInteger] => integer
                                            [negativeInteger] => integer
                                            [long] => string
                                            [int] => integer
                                            [short] => integer
                                            [byte] => string
                                            [nonNegativeInteger] => integer
                                            [unsignedLong] => integer
                                            [unsignedInt] => integer
                                            [unsignedShort] => integer
                                            [unsignedByte] => integer
                                            [positiveInteger] => integer
                                            [anyType] => string
                                            [anyURI] => string
                                            [QName] => string
                                        )

                                    [http://www.w3.org/1999/XMLSchema] => Array
                                        (
                                            [i4] => integer
                                            [int] => integer
                                            [boolean] => boolean
                                            [string] => string
                                            [double] => float
                                            [float] => float
                                            [dateTime] => string
                                            [timeInstant] => string
                                            [base64Binary] => string
                                            [base64] => string
                                            [ur-type] => string
                                        )

                                    [http://schemas.xmlsoap.org/soap/encoding/] => Array
                                        (
                                            [base64] => string
                                            [array] => array
                                            [Array] => array
                                            [Struct] => array
                                        )

                                )

                            [_defaultObjectClassname] => stdClass
                            [_namespaces] => Array
                                (
                                    [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
                                    [http://www.w3.org/2001/XMLSchema] => xsd
                                    [http://www.w3.org/2001/XMLSchema-instance] => xsi
                                    [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
                                    [urn:agnitas-webservice] => ns4
                                )

                            [_namespace] => 
                            [_xmlEntities] => Array
                                (
                                    [&] => &
                                    [<] => <
                                    [>] => >
                                    ['] => &apos;
                                    ["] => "
                                )

                            [_doconversion] => 
                            [_attachments] => Array
                                (
                                )

                            [_wsdl] => 
                            [_section5] => 1
                            [_auto_translation] => 
                            [_type_translation] => Array
                                (
                                )

                            [_encodings] => Array
                                (
                                    [0] => ISO-8859-1
                                    [1] => US-ASCII
                                    [2] => UTF-8
                                )

                            [_myfaultcode] => Client
                            [fault] => SOAP_Fault Object
 *RECURSION*
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => SOAP_Fault
                            [_expected_errors] => Array
                                (
                                )

                            [docparams] => 1
                            [__result_encoding] => UTF-8
                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
                            [1] => stdClass Object
                                (
                                    [hostname] => earth.myurl.net
                                )

                            [2] => 
                            [3] => soapenv:Server.userException
                        )

                )

            [3] => Array
                (
                    [file] => C:\Program Files\PHP\PEAR\SOAP\Client.php
                    [line] => 762
                    [function] => _decodeResponse
                    [class] => SOAP_Client
                    [object] => WebService_EmmWebService_PortService_emm_webservice Object
                        (
                            [_endpoint] => http://myurl.net:8080/emm_webservice
                            [_portName] => 
                            [_endpointType] => 
                            [xml] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                            [wire] => 
                            [_last_request] => 
                            [_last_response] => 
                            [_options] => Array
                                (
                                    [trace] => 
                                    [input] => parse
                                    [result] => parse
                                    [parameters] => 
                                    [namespace] => urn:agnitas-webservice
                                    [soapaction] => 
                                    [style] => rpc
                                    [use] => encoded
                                )

                            [_encoding] => UTF-8
                            [headersIn] => 
                            [_proxy_params] => Array
                                (
                                )

                            [_soap_transport] => SOAP_Transport_HTTP Object
                                (
                                    [headers] => Array
                                        (
                                            [User-Agent] => PEAR-SOAP 0.11.0-beta
                                            [Host] => myurl.net
                                            [Content-Type] => text/xml; charset=UTF-8
                                            [Content-Length] => 793
                                            [SOAPAction] => ""
                                            [Connection] => close
                                        )

                                    [cookies] => Array
                                        (
                                        )

                                    [timeout] => 4
                                    [result_content_type] => text/xml
                                    [result_headers] => Array
                                        (
                                            [server] => Resin/3.0.19
                                            [content-type] => text/xml; charset=utf-8
                                            [date] => Fri, 22 Feb 2008 21
                                        )

                                    [result_cookies] => Array
                                        (
                                        )

                                    [url] => http://myurl.net:8080/emm_webservice
                                    [urlparts] => Array
                                        (
                                            [scheme] => http
                                            [host] => myurl.net
                                            [port] => 8080
                                            [path] => /emm_webservice
                                        )

                                    [incoming_payload] => HTTP/1.0 500 Internal Server Error
Server: Resin/3.0.19
Content-Type: text/xml; charset=utf-8
Date: Fri, 22 Feb 2008 21:00:40 GMT

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                                    [outgoing_payload] => POST /emm_webservice HTTP/1.0
User-Agent: PEAR-SOAP 0.11.0-beta
Host: myurl.net
Content-Type: text/xml; charset=UTF-8
Content-Length: 793
SOAPAction: ""
Connection: close

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:ns4="urn:agnitas-webservice"
 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>

<ns4:addSubscriber>
<in0 xsi:type="xsd:string">guest</in0>
<in1 xsi:type="xsd:string">xxxxxxxxxx</in1>
<in2 xsi:type="xsd:boolean">true</in2>
<in3 xsi:type="xsd:string">email</in3>
<in4 xsi:type="xsd:boolean">true</in4>
<in5 xsi:type="xsd:string">email</in5>
<in6 xsi:type="xsd:string">test@testinguser.com</in6></ns4:addSubscriber>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

                                    [encoding] => UTF-8
                                    [result_encoding] => UTF-8
                                    [attachments] => 
                                    [_userAgent] => PEAR-SOAP 0.11.0-beta
                                    [_XMLSchema] => Array
                                        (
                                            [0] => http://www.w3.org/2001/XMLSchema
                                            [1] => http://www.w3.org/1999/XMLSchema
                                        )

                                    [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
                                    [_typemap] => Array
                                        (
                                            [http://www.w3.org/2001/XMLSchema] => Array
                                                (
                                                    [string] => string
                                                    [boolean] => boolean
                                                    [float] => float
                                                    [double] => float
                                                    [decimal] => float
                                                    [duration] => integer
                                                    [dateTime] => string
                                                    [time] => string
                                                    [date] => string
                                                    [gYearMonth] => integer
                                                    [gYear] => integer
                                                    [gMonthDay] => integer
                                                    [gDay] => integer
                                                    [gMonth] => integer
                                                    [hexBinary] => string
                                                    [base64Binary] => string
                                                    [normalizedString] => string
                                                    [token] => string
                                                    [language] => string
                                                    [NMTOKEN] => string
                                                    [NMTOKENS] => string
                                                    [Name] => string
                                                    [NCName] => string
                                                    [ID] => string
                                                    [IDREF] => string
                                                    [IDREFS] => string
                                                    [ENTITY] => string
                                                    [ENTITIES] => string
                                                    [integer] => integer
                                                    [nonPositiveInteger] => integer
                                                    [negativeInteger] => integer
                                                    [long] => string
                                                    [int] => integer
                                                    [short] => integer
                                                    [byte] => string
                                                    [nonNegativeInteger] => integer
                                                    [unsignedLong] => integer
                                                    [unsignedInt] => integer
                                                    [unsignedShort] => integer
                                                    [unsignedByte] => integer
                                                    [positiveInteger] => integer
                                                    [anyType] => string
                                                    [anyURI] => string
                                                    [QName] => string
                                                )

                                            [http://www.w3.org/1999/XMLSchema] => Array
                                                (
                                                    [i4] => integer
                                                    [int] => integer
                                                    [boolean] => boolean
                                                    [string] => string
                                                    [double] => float
                                                    [float] => float
                                                    [dateTime] => string
                                                    [timeInstant] => string
                                                    [base64Binary] => string
                                                    [base64] => string
                                                    [ur-type] => string
                                                )

                                            [http://schemas.xmlsoap.org/soap/encoding/] => Array
                                                (
                                                    [base64] => string
                                                    [array] => array
                                                    [Array] => array
                                                    [Struct] => array
                                                )

                                        )

                                    [_defaultObjectClassname] => stdClass
                                    [_namespaces] => Array
                                        (
                                            [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
                                            [http://www.w3.org/2001/XMLSchema] => xsd
                                            [http://www.w3.org/2001/XMLSchema-instance] => xsi
                                            [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
                                        )

                                    [_namespace] => 
                                    [_xmlEntities] => Array
                                        (
                                            [&] => &
                                            [<] => <
                                            [>] => >
                                            ['] => &apos;
                                            ["] => "
                                        )

                                    [_doconversion] => 
                                    [_attachments] => Array
                                        (
                                        )

                                    [_wsdl] => 
                                    [_section5] => 1
                                    [_auto_translation] => 
                                    [_type_translation] => Array
                                        (
                                        )

                                    [_encodings] => Array
                                        (
                                            [0] => ISO-8859-1
                                            [1] => US-ASCII
                                            [2] => UTF-8
                                        )

                                    [_myfaultcode] => HTTP
                                    [fault] => 
                                    [_debug] => 
                                    [_default_error_mode] => 
                                    [_default_error_options] => 
                                    [_default_error_handler] => 
                                    [_error_class] => SOAP_Fault
                                    [_expected_errors] => Array
                                        (
                                        )

                                    [errno] => 0
                                    [errmsg] => 
                                    [response] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">earth.myurl.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                                )

                            [_XMLSchema] => Array
                                (
                                    [0] => http://www.w3.org/2001/XMLSchema
                                    [1] => http://www.w3.org/1999/XMLSchema
                                )

                            [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
                            [_typemap] => Array
                                (
                                    [http://www.w3.org/2001/XMLSchema] => Array
                                        (
                                            [string] => string
                                            [boolean] => boolean
                                            [float] => float
                                            [double] => float
                                            [decimal] => float
                                            [duration] => integer
                                            [dateTime] => string
                                            [time] => string
                                            [date] => string
                                            [gYearMonth] => integer
                                            [gYear] => integer
                                            [gMonthDay] => integer
                                            [gDay] => integer
                                            [gMonth] => integer
                                            [hexBinary] => string
                                            [base64Binary] => string
                                            [normalizedString] => string
                                            [token] => string
                                            [language] => string
                                            [NMTOKEN] => string
                                            [NMTOKENS] => string
                                            [Name] => string
                                            [NCName] => string
                                            [ID] => string
                                            [IDREF] => string
                                            [IDREFS] => string
                                            [ENTITY] => string
                                            [ENTITIES] => string
                                            [integer] => integer
                                            [nonPositiveInteger] => integer
                                            [negativeInteger] => integer
                                            [long] => string
                                            [int] => integer
                                            [short] => integer
                                            [byte] => string
                                            [nonNegativeInteger] => integer
                                            [unsignedLong] => integer
                                            [unsignedInt] => integer
                                            [unsignedShort] => integer
                                            [unsignedByte] => integer
                                            [positiveInteger] => integer
                                            [anyType] => string
                                            [anyURI] => string
                                            [QName] => string
                                        )

                                    [http://www.w3.org/1999/XMLSchema] => Array
                                        (
                                            [i4] => integer
                                            [int] => integer
                                            [boolean] => boolean
                                            [string] => string
                                            [double] => float
                                            [float] => float
                                            [dateTime] => string
                                            [timeInstant] => string
                                            [base64Binary] => string
                                            [base64] => string
                                            [ur-type] => string
                                        )

                                    [http://schemas.xmlsoap.org/soap/encoding/] => Array
                                        (
                                            [base64] => string
                                            [array] => array
                                            [Array] => array
                                            [Struct] => array
                                        )

                                )

                            [_defaultObjectClassname] => stdClass
                            [_namespaces] => Array
                                (
                                    [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
                                    [http://www.w3.org/2001/XMLSchema] => xsd
                                    [http://www.w3.org/2001/XMLSchema-instance] => xsi
                                    [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
                                    [urn:agnitas-webservice] => ns4
                                )

                            [_namespace] => 
                            [_xmlEntities] => Array
                                (
                                    [&] => &
                                    [<] => <
                                    [>] => >
                                    ['] => &apos;
                                    ["] => "
                                )

                            [_doconversion] => 
                            [_attachments] => Array
                                (
                                )

                            [_wsdl] => 
                            [_section5] => 1
                            [_auto_translation] => 
                            [_type_translation] => Array
                                (
                                )

                            [_encodings] => Array
                                (
                                    [0] => ISO-8859-1
                                    [1] => US-ASCII
                                    [2] => UTF-8
                                )

                            [_myfaultcode] => Client
                            [fault] => SOAP_Fault Object
 *RECURSION*
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => SOAP_Fault
                            [_expected_errors] => Array
                                (
                                )

                            [docparams] => 1
                            [__result_encoding] => UTF-8
                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SOAP_Value Object
                                (
                                    [value] => Array
                                        (
                                            [0] => SOAP_Value Object
                                                (
                                                    [value] => soapenv:Server.userException
                                                    [name] => faultcode
                                                    [type] => string
                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                    [type_namespace] => 
                                                    [attributes] => Array
                                                        (
                                                        )

                                                    [arrayType] => 
                                                    [options] => Array
                                                        (
                                                        )

                                                    [nqn] => QName Object
                                                        (
                                                            [name] => faultcode
                                                            [ns] => 
                                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                        )

                                                    [tqn] => QName Object
                                                        (
                                                            [name] => string
                                                            [ns] => 
                                                            [namespace] => 
                                                        )

                                                    [type_prefix] => 
                                                )

                                            [1] => SOAP_Value Object
                                                (
                                                    [value] => org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.agnitas.webservice.StringArrayType)
                                                    [name] => faultstring
                                                    [type] => string
                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                    [type_namespace] => 
                                                    [attributes] => Array
                                                        (
                                                        )

                                                    [arrayType] => 
                                                    [options] => Array
                                                        (
                                                        )

                                                    [nqn] => QName Object
                                                        (
                                                            [name] => faultstring
                                                            [ns] => 
                                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                        )

                                                    [tqn] => QName Object
                                                        (
                                                            [name] => string
                                                            [ns] => 
                                                            [namespace] => 
                                                        )

                                                    [type_prefix] => 
                                                )

                                            [2] => SOAP_Value Object
                                                (
                                                    [value] => Array
                                                        (
                                                            [0] => SOAP_Value Object
                                                                (
                                                                    [value] => earth.myurl.net
                                                                    [name] => hostname
                                                                    [type] => string
                                                                    [namespace] => http://xml.apache.org/axis/
                                                                    [type_namespace] => 
                                                                    [attributes] => Array
                                                                        (
                                                                        )

                                                                    [arrayType] => 
                                                                    [options] => Array
                                                                        (
                                                                        )

                                                                    [nqn] => QName Object
                                                                        (
                                                                            [name] => hostname
                                                                            [ns] => 
                                                                            [namespace] => http://xml.apache.org/axis/
                                                                        )

                                                                    [tqn] => QName Object
                                                                        (
                                                                            [name] => string
                                                                            [ns] => 
                                                                            [namespace] => 
                                                                        )

                                                                    [type_prefix] => 
                                                                )

                                                        )

                                                    [name] => detail
                                                    [type] => Struct
                                                    [namespace] =&gt
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

I should also say, that I'm also testing using the webservices in Adobe Flex. I don't get the error, but nothing happens either. The webservice returns 0 on addSubscriber. I did actually get this working once, but since I changed the files out (replaced the old ones), it's not working anymore.
Post Reply