<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: PB 12.5 Soap Connection, Bad Runtime Function Reference in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428627#M57201</link>
    <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Dear Wing,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I have the same problem that you describe here...&lt;/P&gt;
  &lt;P&gt;I've created a web service project in a standalone application and it works fine.&lt;/P&gt;
  &lt;P&gt;But when I tried to implement it to my real application, i got the "Bad runtime error"...&lt;/P&gt;
  &lt;P&gt;Your code is exactely like mine.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Did you manage to solve the problem?&lt;/P&gt;
  &lt;P&gt;If you did, can you tell me how?&lt;/P&gt;
  &lt;P&gt;Thank you, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Sharon.&lt;/P&gt;</description>
    <pubDate>Mon, 14 May 2018 12:41:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-05-14T12:41:13Z</dc:date>
    <item>
      <title>PB 12.5 Soap Connection, Bad Runtime Function Reference</title>
      <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaq-p/428624</link>
      <description>&lt;P&gt;Dear All Masters,&lt;/P&gt;&lt;P&gt;- My email is thomas_leungwk@yahoo.com&lt;/P&gt;&lt;P&gt;- Using PB12.5 in Windows 7 32 bit platform.&lt;/P&gt;&lt;P&gt;- I develop a simple program consume a web service following the below steps. &lt;/P&gt;&lt;P&gt;&lt;A href="http://powerbuilderworld.blogspot.hk/2012/09/calling-web-service-from-powerbuilder.html#.WLwy-jizmUk" target="test_blank"&gt;http://powerbuilderworld.blogspot.hk/2012/09/calling-web-service-from-powerbuilder.html#.WLwy-jizmUk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I successfully run when it is alone. However I try to rewrite the code and implement it into one production program. I got this error message. &lt;/P&gt;&lt;P&gt;"E3181- Error Number 21&lt;/P&gt;&lt;P&gt;Error text = Bad runtime function reference at line 29 in clicked event of object cb_retrieve of w_nvs009_maintain_case_q01. &lt;/P&gt;&lt;P&gt;Window/Menu/Object = w_nvs009_maintain_case_q01&lt;/P&gt;&lt;P&gt;Error Object/Control = cb_retrieve&lt;/P&gt;&lt;P&gt;Script = clicked."&lt;/P&gt;&lt;P&gt;- A gentleman asked similar question before in here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/3546330" target="test_blank"&gt;https://archive.sap.com/discussions/thread/3546330&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However I do not know how to do and how to check. Also how to add in if missing. &lt;/P&gt;&lt;P&gt;- My senior tried to link my successful one into the production program. It also comes out the above error. My code is listed below for reference.&lt;/P&gt;&lt;P&gt;long l_rc&lt;/P&gt;&lt;P&gt;soapconnection conn&lt;/P&gt;&lt;P&gt;oponlinesoapservice lnv_webservice&lt;/P&gt;&lt;P&gt;opcar mycar   //web service field&lt;/P&gt;&lt;P&gt;opuser myuser  //web service field&lt;/P&gt;&lt;P&gt;strings_color,
s_id&lt;/P&gt;&lt;P&gt;lnv_webservice= Create oponlinesoapservice&lt;/P&gt;&lt;P&gt;mycar = create opcar&lt;/P&gt;&lt;P&gt;myuser = Create opuser&lt;/P&gt;&lt;P&gt;myuser.id = sle_id.text&lt;/P&gt;&lt;P&gt;myuser.age = integer(sle_age.text)&lt;/P&gt;&lt;P&gt;myuser.name = sle_name.text&lt;/P&gt;&lt;P&gt;myuser.remark = sle_remark.text&lt;/P&gt;&lt;P&gt;//Sample input parameter&lt;/P&gt;&lt;P&gt;//myuser.id = '2'&lt;/P&gt;&lt;P&gt;//myuser.age = 1 &lt;/P&gt;&lt;P&gt;//myuser.name = 'alex' &lt;/P&gt;&lt;P&gt;//myuser.remark = 'test'&lt;/P&gt;&lt;P&gt;conn = create soapconnection&lt;/P&gt;&lt;P&gt;l_rc = conn.createinstance( lnv_webservice,
"oponlinesoapservice") &lt;/P&gt;&lt;P&gt;// ERROR IN THE ABOVE LINE!!!&lt;/P&gt;&lt;P&gt;messagebox("Connection ready?",
l_rc)//0=ok, 100=invalid proxy name,
101=fail to create proxy&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;mycar
= lnv_webservice.buycar(myuser)&lt;/P&gt;&lt;P&gt;s_color=mycar.owner.name&lt;/P&gt;&lt;P&gt;s_id
= mycar.licenseplateno&lt;/P&gt;&lt;P&gt;mle_result.text
= s_color + " " + s_id&lt;/P&gt;&lt;P&gt;catch (soapexception e)&lt;/P&gt;&lt;P&gt;messagebox("error",
e.getmessage())&lt;/P&gt;&lt;P&gt;finally&lt;/P&gt;&lt;P&gt;destroy
conn&lt;/P&gt;&lt;P&gt;end try&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaq-p/428624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-06T09:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: PB 12.5 Soap Connection, Bad Runtime Function Reference</title>
      <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428625#M57199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you deploy the librairies &lt;/P&gt;&lt;P&gt;pbwsclient125.pbd or  pbsoapclient125.pbd&lt;/P&gt;&lt;P&gt;depending on if you use .Net engine or Soap Engine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Abdallah.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428625#M57199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-06T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: PB 12.5 Soap Connection, Bad Runtime Function Reference</title>
      <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428626#M57200</link>
      <description>&lt;P&gt;Dear Abdallah,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response. pbwsclient125.pbx is imported. I follow the steps in &lt;/P&gt;&lt;P&gt;&lt;A href="http://powerbuilderworld.blogspot.hk/2012/09/calling-web-service-from-powerbuilder.html#.WLwy-jizmUk"&gt;http://powerbuilderworld.blogspot.hk/2012/09/calling-web-service-from-powerbuilder.html#.WLwy-jizmUk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;A href="https://blogs.sap.com/2015/04/09/consuming-a-web-service-with-powerbuilder-125-classic/" target="test_blank"&gt;https://blogs.sap.com/2015/04/09/consuming-a-web-service-with-powerbuilder-125-classic/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://powerbuilderworld.blogspot.hk/2012/09/calling-web-service-from-powerbuilder.html#.WLwy-jizmUk"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I successfully run my web service client in standalone. However I do not know how to put my standalone web service client into my other PB program. I named it, AAA_DEV&lt;/P&gt;&lt;P&gt;I tried to re-produce the steps in AAA_DEV under my Thomas pbl. Because AAA_DEV has its own Workspace. I only create Project | Web Service Proxy Wizard | ..... I only ignore the creation of Workspace and Project step. &lt;/P&gt;&lt;P&gt;I successfully save it. However when run it. The system generates the error.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/25869-4pxfn.png" /&gt;&lt;/P&gt;&lt;P&gt;Line 26: &lt;/P&gt;&lt;P&gt;l_rc = conn.createinstance( lnv_webservice, "pp_onlinesoapservice")&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/25870-hnzyf.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 03:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428626#M57200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-17T03:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: PB 12.5 Soap Connection, Bad Runtime Function Reference</title>
      <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428627#M57201</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Dear Wing,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I have the same problem that you describe here...&lt;/P&gt;
  &lt;P&gt;I've created a web service project in a standalone application and it works fine.&lt;/P&gt;
  &lt;P&gt;But when I tried to implement it to my real application, i got the "Bad runtime error"...&lt;/P&gt;
  &lt;P&gt;Your code is exactely like mine.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Did you manage to solve the problem?&lt;/P&gt;
  &lt;P&gt;If you did, can you tell me how?&lt;/P&gt;
  &lt;P&gt;Thank you, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Sharon.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428627#M57201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-14T12:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: PB 12.5 Soap Connection, Bad Runtime Function Reference</title>
      <link>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428628#M57202</link>
      <description>&lt;P&gt;You said "pbwsclient125.pbx is imported". That just created wrapper objects in the PBL. You still need to deploy pbwsclient125.pbx with your application.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 21:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pb-12-5-soap-connection-bad-runtime-function-reference/qaa-p/428628#M57202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-14T21:31:01Z</dc:date>
    </item>
  </channel>
</rss>

