JST-310003 Failed to load the js library | Community
Skip to main content
wankang
Level 3
April 6, 2023
Solved

JST-310003 Failed to load the js library

  • April 6, 2023
  • 2 replies
  • 1085 views

i develop a send sms function,  i create a table(smsApiservice:cus), the method(SendSingleSms) at the table, and the cus:smsApiservice.js, then i should had a wsdl url can find, such as 'http://localhost:8080/nl/jsp/schemawsdl.jsp?schema=cus:smsApiservice',

 

and i use the postman to via the url, it report below issue:

 

<?xml version='1.0'?>
    <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring xsi:type='xsd:string'>SOP-330011 Error while executing the method 'SendSingleSms' of service 'cus:smsApiservice'.</faultstring>
            <detail xsi:type='xsd:string'>XSV-350000 Unable to load document of identifier 'cus:smsApiservice.js' and type 'xtk:javascript'.
JST-310003 Failed to load the 'cus:smsApiservice.js' library</detail>
        </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sukrity_Wadhwa

Hi @wankang,

I believe we already have a solution to your issue on the other thread that you have posted: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/jst-310001-error-while-evaluating-a-javascript-code-line-1-void/td-p/585362

Please let me know in case you still want to keep this thread open for more inputs from the Community.

Thanks!

2 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
April 6, 2023

Hello @wankang 
You need to have properly set the methods in your schema XML

 

 

 

 

... <methods> <method library="cus:smsApiservice.js" name="SendSingleSMS" static="true"> <!-- in out arguments--> ...

 

 

Where library should be saved under JavaScript codes folder and be called exactly the same even with .js extension.
Then inside the library you have to have function which has to return arguments as you have defined in the methods of schema.

 

 

var cus_smsApiservice_SendSingleSms(arg){ //do something }

 

 

Marcel

wankang
wankangAuthor
Level 3
April 10, 2023

that's great. it's a name incorrect. it should like "cus_smsApiservice_SendSingleSms"

Sukrity_Wadhwa
Community Manager
Sukrity_WadhwaCommunity ManagerAccepted solution
Community Manager
April 10, 2023

Hi @wankang,

I believe we already have a solution to your issue on the other thread that you have posted: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/jst-310001-error-while-evaluating-a-javascript-code-line-1-void/td-p/585362

Please let me know in case you still want to keep this thread open for more inputs from the Community.

Thanks!

Sukrity Wadhwa