Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

JST-310003 Failed to load the js library

Avatar

Level 3

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>
1 Accepted Solution

Avatar

Correct answer by
Administrator

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-w...

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

Thanks!



Sukrity Wadhwa

View solution in original post

3 Replies

Avatar

Community Advisor

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

Avatar

Level 3

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

Avatar

Correct answer by
Administrator

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-w...

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

Thanks!



Sukrity Wadhwa