Home > database >  Pb webservice return value size limit
Pb webservice return value size limit

Time:09-26

Pb11.5 access web service, the return value has a size limit? As more data will not be able to return?



The SoapConnection lsc_conn//define the SoapConnection object
Getfiledirimplport lproxy_obj//define the generated proxy objects
String ls_proxy_name="getfiledirimplport"//generated proxy object name
String ls_url URL="http://localhost:8080/webService/GetFileDir"//WebService
Lsc_conn=Create the SoapConnection
Lsc_conn. SetOptions (" SoapLog=~ "SoapLog. TXT ~" ")
Int li_ret, I
Li_ret=lsc_conn. Createinstance (lproxy_obj ls_proxy_name, ls_url)
If li_ret & lt;> 0 Then
MessageBox (" error ", "call fails, an error number:" + String (li_ret))
Return
End the If
Try
Tns__getfiledir lst_request
Lst_request. Arg0=sle_fileurl. Text
Tns__getfiledirresponse lst_result
Lst_result=lproxy_obj. Getfiledir (lst_request)
Mle_filedir. Text=lst_result. Ws_return
The catch (SoapException e)
Messagebox (" Error!" , um participant etMessage ())//the error handling for
End the try
Destroy lsc_conn




But found that the generated soaplog. TXT file and as a result, we have found this problem?

CodePudding user response:

Not ah, is generally return data set!
Try to write a simple function!

CodePudding user response:

Can't? What do you mean, there are size limits?
I this is a Java to write a webservice, return a string that is an XML string,

CodePudding user response:

How many rows, the original.net + IIS, generally tens of thousands of lines, no problem

CodePudding user response:

Even on the soap header is only 898 characters
To remove the soap is 426 characters

CodePudding user response:

Lst_result=lproxy_obj. Getfiledir (lst_request)
Mle_filedir. Text=lst_result. Ws_return

No return value, to hand in the parameters with ref, the return value here I don't know whether I have limitation, I'll try
Ll_retrieve=pb_soap. Uf_retrieve (ls_syntax ls_sql, ref dwo_blob, ref ls_returnerr)

Soaplog content a lot more than 300 K, the incoming parameters, and returns all the data inside the

CodePudding user response:

Java there do not have the value reference, not the spread value of pb option, 5555

CodePudding user response:

There should be no restrictions, you test, if the success when the return value is the length of the 100

And then returns the maximum length of 1000 to look at

CodePudding user response:

I've tried, the first floor of the code is not line, 898 (including soap header), actually only 426 characters

CodePudding user response:

This is likely to try to know,

CodePudding user response:

Test the return value, int, string, blob
The return value is no problem, but not more than a string of pb limit of 32767, with more than a blob

CodePudding user response:

If there is a return value, in the soaplog. TXT should also can see

Don't know lst_result. Ws_return he is greater than the length of the string of pb,

You have to judge the ws_return length in the webservice

CodePudding user response:

In the soaplog. TXT inside to see the return value, but lst_result. Ws_return is null values, very helpless, I don't know what reason

CodePudding user response:

I the webservice is return to the specified directory of XML tree, like


<? The XML version="1.0" encoding="utf-8"?>








Then lst_result ws_return length is 358, but I once in an empty directory under the root is washed-up, lst_result. Ws_return is null,

CodePudding user response:

In an empty directory under the root, this is what to do

CodePudding user response:

This means & lt; Root>


And empty directory it doesn't matter, don't say add empty directory,


Just one of the above XML directory name longer one character at a time, lst_result. Ws_return is null,

CodePudding user response:

This kind of situation is difficult to determine, there is no limit to the pb side I've tried, don't know Java

CodePudding user response:

Your pb11.5 version number?

CodePudding user response:

You are to invoke the webservice?

CodePudding user response:

3127 the webservice is also written in pb

CodePudding user response:

Webservice deployment in where?

CodePudding user response:

Iis5.0
reference wnanfirst 20 floor response:
webservice deployment in where?

CodePudding user response:

Not yes, there is no limit to the size

CodePudding user response:

Let's reference

CodePudding user response:

No problem, need not consider the return value size limit. If lost because of transport problems.

CodePudding user response:

Size seems to be limited, 32 k, upload there are limits
  • Related