|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: Re: SOAP Protocol version - msg#00106List: php.nusoap.general
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
The SOAP 1.2 spec says
(http://www.w3.org/TR/2003/REC-soap12-part1-20030624/#version) >>>> A SOAP Version 1.2 node receiving a SOAP/1.1 message either: MAY process the message as a SOAP/1.1 message (if supported), or MUST generate a version mismatch SOAP fault based on a SOAP/1.1 message construct following SOAP/1.1 semantics using a SOAP/1.1 binding to the underlying protocol (see SOAP 1.1 [SOAP 1.1]). The SOAP fault SHOULD include an Upgrade SOAP header block as defined in this specification (see 5.4.7 VersionMismatch Faults) indicating support for SOAP Version 1.2. This allows a receiving SOAP/1.1 node to correctly interpret the SOAP fault generated by the SOAP Version 1.2 node. <<<< So, regardless of whether the SOAP 1.2 node will fully process a SOAP 1.1 message, it must always respond to a SOAP 1.1 node with a SOAP 1.1 message that the node can understand. That the Delphi client returns "Received content of invalid Content-Type setting: text/html - SOAP > expects "text/xml")" says that the response is text/html, which most likely > means the server has an error either before it passes the request to the SOAP > processor, or that there is an untrapped error in the SOAP processor itself. I am surprised that NuSOAP would crash with no error message. Are you writing messages to a log? I have this in php.ini ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = On ; Log errors to specified file. error_log = f:/php-4.3.4-Win32/php.err PHP is almost certainly running out of memory as it builds a large structure representing the response in memory. I would expect it to write to the log for this. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Dwight Sands" <dwight@xxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, October 20, 2004 1:22 AM Subject: [Nusoap-general] SOAP Protocol version > Is the latest version of NuSOAP SOAP v1.2 compatible? If not, what are the > implications of making calls from a v1.2 client? I am using version 0.6.8 - > revision 1.81. > I have a web service that uses a complex type consisting of an array of > arrays of arrays... It works perfect with a small dataset but crashes with a > large dataset in what seems to be the xml_parse() in soap_parser class. I've > been unable to generate an error message. The client is a Delphi 7 app and > returns: (Received content of invalid Content-Type setting: text/html - SOAP > expects "text/xml"). > The large dataset is no different other than size. Any Ideas? The code that > makes up the Complex type and the Method Registration are below: > > =============================================== > > // EmployeeService > $l_oServer->wsdl->addComplexType( > 'EmployeeService', > 'complexType', > 'struct', > 'all', > '', > array( > 'envisionid'=>array('name'=>'envisionid', 'type'=>'xsd:string'), > 'price'=>array('name'=>'price', 'type'=>'xsd:string'), > 'timeblock'=>array('name'=>'timeblock', 'type'=>'xsd:int'), > 'employeeenvisionid'=>array('name'=>'employeeenvisionid', > 'type'=>'xsd:string'), > 'servicename'=>array('name'=> 'servicename', 'type' => 'xsd:string'), > 'servicetype'=>array('name' => 'servicetype', 'type' => 'xsd:string'), > 'locationid'=>array('name' => 'locationid', 'type' => 'xsd:string')) > ); > > // ArrayOfEmployeeServices > $l_oServer->wsdl->addComplexType( > 'ArrayOfEmployeeServices', > 'complexType', > 'array', > '', > 'SOAP-ENC:Array', > array(), > array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => > 'tns:EmployeeService[]')), > 'tns:EmployeeService' > ); > > // EmployeeCalendarDay > $l_oServer->wsdl->addComplexType( > 'EmployeeCalendarDay', > 'complexType', > 'struct', > 'all', > '', > array( > 'employeeenvisionid' => array('name'=>'employeeenvisionid', > 'type'=>'xsd:string'), > 'day' =>array('name'=> 'day', 'type' => 'xsd:string'), > 'begin' => array('name' => 'begin', 'type' => 'xsd:string'), > 'end' => array('name' => 'end', 'type' => 'xsd:string')) > ); > > // ArrayOfEmployeeCalendarDays > $l_oServer->wsdl->addComplexType( > 'ArrayOfEmployeeCalendarDays', > 'complexType', > 'array', > '', > 'SOAP-ENC:Array', > array(), > array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => > 'tns:EmployeeCalendarDay[]')), > 'tns:EmployeeCalendarDay' > ); > > // EmployeeData > $l_oServer->wsdl->addComplexType( > 'EmployeeData', > 'complexType', > 'struct', > 'all', > '', > array( > 'envisionid' => array('name'=>'envisionid', 'type'=>'xsd:string'), > 'fname' =>array('name'=> 'fname', 'type' => 'xsd:string'), > 'lname' => array('name' => 'lname', 'type' => 'xsd:string'), > 'title' => array('name' => 'title', 'type' => 'xsd:string'), > 'bio' => array('name'=>'bio', 'type' => 'xsd:string'), > 'calendardays'=>array('name'=>'tns:calendardays', > 'type'=>'tns:ArrayOfEmployeeCalendarDays'), > 'services'=>array('name'=>'tns:services', > 'type'=>'tns:ArrayOfEmployeeServices')) > ); > > // ArrayOfEmployees > $l_oServer->wsdl->addComplexType( > 'ArrayOfEmployees', > 'complexType', > 'array', > '', > 'SOAP-ENC:Array', > array(), > array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => > 'tns:EmployeeData[]')), > 'tns:EmployeeData' > ); > > ---------------------------------------------------------------------------- > ---------- > > $l_oServer->register( > 'updateEmployees', > array('locationID'=>'xsd:string', 'user'=>'xsd:string', > 'pass'=>'xsd:string', 'dataArr'=>'tns:ArrayOfEmployees'), > array('return'=>'xsd:boolean'), > 'http://www.mysalonappointment.com/webserv/'); > > ======================================================================== > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
Thread at a glance:
Previous Message by Date:Re: help about content-type in SOAP messageBy multiple levels, I assume you mean that the multipart/related contains a part that itself is multipart/related. The code uses the PEAR support for MIME, and I have to say that I have never tested such an ability. If the code does not pull this nested structure apart, I assume your code would get an attachment that is multipart/related, and you would have to pull it apart, or possibly use the PEAR classes to help you pull it apart. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Eric Monchanin" <emonchan@xxxxxxx> To: "Nusoap List" <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, October 20, 2004 1:02 AM Subject: Re: [Nusoap-general] help about content-type in SOAP message > Does this class allow to include multiple levels of attachments ? > I mean, I've watch the logs of a working java applet sending requests to > the soap server, I have something like this: > > SOAPAction: "" > Content-Length: 1576 > Content-Type: multipart/related; > boundary="----=_Part_51_14456678.1098238579667" > > ------=_Part_51_14456678.1098238579667 > Content-Type: text/xml; charset=us-ascii > Content-Transfer-Encoding: 7bit > > ------=_Part_51_14456678.1098238579667 > Content-Type: multipart/related; > boundary="----=_Part_52_5760903.1098238579667"; > start="<mms.smil>"; > type="application/smil" > Content-ID: <generic_content_id> > > ------=_Part_52_5760903.1098238579667 > Content-Type: application/smil > Content-Transfer-Encoding: 7bit > Content-ID: <mms.smil> > > ------=_Part_52_5760903.1098238579667-- > > ------=_Part_51_14456678.1098238579667-- > > Maybe you doesn't call it "multiple levels of attachments" but it looks > like it is. > as far, I just succeeded doing "one level" > > > Scott Nichol a écrit : > > >The multipart/related content type is used when a SOAP message is sent with > >attachments. If the attachments are MIME attachments, the nusoapmime.php > >file has the soapclientmime class that may help you a lot. The > >mimeclient.php sample shows a very simple use of this class. > > > >Scott Nichol > > > >Do not send e-mail directly to this e-mail address, > >because it is filtered to accept only mail from > >specific mail lists. > >----- Original Message ----- > >From: "Eric Monchanin" <emonchan@xxxxxxx> > >To: "Nusoap List" <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > >Sent: Tuesday, October 19, 2004 8:31 PM > >Subject: [Nusoap-general] help about content-type in SOAP message > > > > > > > > > >>Hi guys, > >> > >>I'm a little swamped in an application I try to developp, > >>I have to use a method (Submit an Multimedia Message - MMS) to a MMSC > >>using mm7 protocol (soap based) that has no wsdl > >>I basically have just some basic docs. > >> > >>Well, one of my problems is that it seems my SOAP message has to be > >>"multipart/related". I tried a lot of different things, like > >>overwritting headers in the SOAP_client instance ... > >>But it doesn't seem to work, and the SOAP message stays xml/text. > >> > >>So how can I change that content-type to multipart/related ? > >> > >>Thank for your help. > >>Also in you have any knowledge on mm7 and being ok to help me, I'd be > >>really happy. > >> > >>Eric > >> > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > >>Use IT products in your business? Tell us what you think of them. Give us > >>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > >>http://productguide.itmanagersjournal.com/guidepromo.tmpl > >>_______________________________________________ > >>Nusoap-general mailing list > >>Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > >>https://lists.sourceforge.net/lists/listinfo/nusoap-general > >> > >> > >> > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > >Use IT products in your business? Tell us what you think of them. Give us > >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > >http://productguide.itmanagersjournal.com/guidepromo.tmpl > >_______________________________________________ > >Nusoap-general mailing list > >Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > >https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl Next Message by Date:Problem with NuSoap,ApacheHi, we have a site running with Apache,PHP and Nusoap running on the Webservers. The Webservers have been set up on a Debian Linux System. We have now tried to switch to an Windows 2000 Server Environment and encountered a severe Problem, which hasn't been recognized on the Linux System before. The Website can Handle a bunch of Request but then 1 of the Apache Processes is hanging. After that we are not able to make further Requests with NuSoap, but the Webserver is still able to handle Request with pure PHP and direct Connections to the Db. has anyone encountered such a behaviour before and has a Hint how to solve it? best regards Oliver Bockemuehl ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl Previous Message by Thread:SOAP Protocol versionIs the latest version of NuSOAP SOAP v1.2 compatible? If not, what are the implications of making calls from a v1.2 client? I am using version 0.6.8 - revision 1.81. I have a web service that uses a complex type consisting of an array of arrays of arrays... It works perfect with a small dataset but crashes with a large dataset in what seems to be the xml_parse() in soap_parser class. I've been unable to generate an error message. The client is a Delphi 7 app and returns: (Received content of invalid Content-Type setting: text/html - SOAP expects "text/xml"). The large dataset is no different other than size. Any Ideas? The code that makes up the Complex type and the Method Registration are below: =============================================== // EmployeeService $l_oServer->wsdl->addComplexType( 'EmployeeService', 'complexType', 'struct', 'all', '', array( 'envisionid'=>array('name'=>'envisionid', 'type'=>'xsd:string'), 'price'=>array('name'=>'price', 'type'=>'xsd:string'), 'timeblock'=>array('name'=>'timeblock', 'type'=>'xsd:int'), 'employeeenvisionid'=>array('name'=>'employeeenvisionid', 'type'=>'xsd:string'), 'servicename'=>array('name'=> 'servicename', 'type' => 'xsd:string'), 'servicetype'=>array('name' => 'servicetype', 'type' => 'xsd:string'), 'locationid'=>array('name' => 'locationid', 'type' => 'xsd:string')) ); // ArrayOfEmployeeServices $l_oServer->wsdl->addComplexType( 'ArrayOfEmployeeServices', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:EmployeeService[]')), 'tns:EmployeeService' ); // EmployeeCalendarDay $l_oServer->wsdl->addComplexType( 'EmployeeCalendarDay', 'complexType', 'struct', 'all', '', array( 'employeeenvisionid' => array('name'=>'employeeenvisionid', 'type'=>'xsd:string'), 'day' =>array('name'=> 'day', 'type' => 'xsd:string'), 'begin' => array('name' => 'begin', 'type' => 'xsd:string'), 'end' => array('name' => 'end', 'type' => 'xsd:string')) ); // ArrayOfEmployeeCalendarDays $l_oServer->wsdl->addComplexType( 'ArrayOfEmployeeCalendarDays', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:EmployeeCalendarDay[]')), 'tns:EmployeeCalendarDay' ); // EmployeeData $l_oServer->wsdl->addComplexType( 'EmployeeData', 'complexType', 'struct', 'all', '', array( 'envisionid' => array('name'=>'envisionid', 'type'=>'xsd:string'), 'fname' =>array('name'=> 'fname', 'type' => 'xsd:string'), 'lname' => array('name' => 'lname', 'type' => 'xsd:string'), 'title' => array('name' => 'title', 'type' => 'xsd:string'), 'bio' => array('name'=>'bio', 'type' => 'xsd:string'), 'calendardays'=>array('name'=>'tns:calendardays', 'type'=>'tns:ArrayOfEmployeeCalendarDays'), 'services'=>array('name'=>'tns:services', 'type'=>'tns:ArrayOfEmployeeServices')) ); // ArrayOfEmployees $l_oServer->wsdl->addComplexType( 'ArrayOfEmployees', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:EmployeeData[]')), 'tns:EmployeeData' ); ---------------------------------------------------------------------------- ---------- $l_oServer->register( 'updateEmployees', array('locationID'=>'xsd:string', 'user'=>'xsd:string', 'pass'=>'xsd:string', 'dataArr'=>'tns:ArrayOfEmployees'), array('return'=>'xsd:boolean'), 'http://www.mysalonappointment.com/webserv/'); ======================================================================== ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl Next Message by Thread:Problem with NuSoap,ApacheHi, we have a site running with Apache,PHP and Nusoap running on the Webservers. The Webservers have been set up on a Debian Linux System. We have now tried to switch to an Windows 2000 Server Environment and encountered a severe Problem, which hasn't been recognized on the Linux System before. The Website can Handle a bunch of Request but then 1 of the Apache Processes is hanging. After that we are not able to make further Requests with NuSoap, but the Webserver is still able to handle Request with pure PHP and direct Connections to the Db. has anyone encountered such a behaviour before and has a Hint how to solve it? best regards Oliver Bockemuehl ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
blog comments powered by Disqus
|
|