Zend soap looks like we got no XML document

Source: Internet
Author: User
Tags stack trace

This error is often caused by your own descriptive language.

For example

/**

* A main function can be sync crawler CV

* @ Param string $ xmlstring

* @ Return Array

*/

Public Function synccrawlercvs ($ xmlstring ){

$ Xmlstring = $ this-> loadingxml ();

$ Result = $ this-> xml_to_array ($ xmlstring );

Return $ result;

$ This-> _ xmlstring = $ xmlstring;

$ This-> _ xmlarray = $ this-> xmlparsetoarray ($ xmlstring );

$ This-> _ inclusionalresumeid = $ this-> getinclusionalresumemail ($ this-> _ xmlarray );

If (isexistsintools () = false ){

// Do insert

} Else {

If (hasdditdate () = false ){

// Do update in main table, and do Delete then insert to the son table

} Else {

If (getspacetime ($ this-> _ xmlarray)> 30 ){

// Get CV content by resume ID

//.........

// Parse to HTML and send emial

}

}

}

}

After writing an array into a string or integer, some complicated problems may occur.

For example

The following error occurred:

Soapfault exception: [Sender] Looks like we got no XML document in
C: \ Users \ n. Zhang \ Documents \ tools \ library \ Zend \ soap \ Client. php: 1113
Stack trace:
#0 C: \ Users \ n. Zhang \ Documents \ tools \ library \ Zend \ soap \ Client. php (1113 ):
Soapclient->__ soapcall ('synccrawlercvs ', array, null, null, array)
#1 [internal function]: zend_soap_client->__ call ('synccrawlercvs ',
Array)
#2
C: \ Users \ n. Zhang \ Documents \ tools \ Application \ Default \ controllers \ soapservercontroller. php (41 ):
Zend_soap_client-> synccrawlercvs ('')
#3
C: \ Users \ n. Zhang \ Documents \ tools \ library \ Zend \ controller \ action. php (502 ):
Soapservercontroller-> clientaction ()
#4
C: \ Users \ n. Zhang \ Documents \ tools \ library \ Zend \ controller \ dispatcher \ Standard. php (293 ):
Zend_controller_action-> dispatch ('clientaction ')
#5
C: \ Users \ n. Zhang \ Documents \ tools \ library \ Zend \ controller \ front. php (946 ):

Zend_controller_dispatcher_standard-> dispatch (Object (zend_controller_request_http ),
Object (zend_controller_response_http ))
#6 c: \ Users \ n. Zhang \ Documents \ tools \ Application \ Bootstrap. php (32 ):
Zend_controller_front-> dispatch ()
#7 c: \ Users \ n. Zhang \ Documents \ tools \ index. php (6 ):
Require_once ('C: \ Users \ n. Zhan ...')
#8 {main}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.