• laxmi
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 1
    Replies
hi all , i am getting this error,
i have created an webservice
global class test420
{
WebService static string test1(string result)
{

dbconnection1Mywebservice1Wsdl420.MyWebService1SoapHttpPort stub =
new dbconnection1Mywebservice1Wsdl420.MyWebService1SoapHttpPort();

return result = stub.placeOrder(1, 1, 1);



}}
for the generated apex code as given below
public class dbconnection1Mywebservice1WsdlTypes420 {
public class placeOrderElement_element {
public Integer pProductId;
public Integer pCustomerId;
public Integer pQuantity;
private String[] pProductId_type_info = new String[]{'pProductId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pCustomerId_type_info = new String[]{'pCustomerId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pQuantity_type_info = new String[]{'pQuantity','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbconnection1/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'pProductId','pCustomerId','pQuantity'};
}
public class placeOrderResponseElement_element {
public String result;
private String[] result_type_info = new String[]{'result','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbconnection1/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'result'};
}
public class dbconnection1Mywebservice1Wsdl420 {
public class MyWebService1SoapHttpPort {
public String endpoint_x = 'http://192.168.200.78:7777/PLSQLWEB-PLSQL-context-root/MyWebService1SoapHttpPort';
private String[] ns_map_type_info = new String[]{'http://dbconnection1/MyWebService1.wsdl/types/', 'dbconnection1Mywebservice1WsdlTypes420', 'http://dbconnection1/MyWebService1.wsdl', 'dbconnection1Mywebservice1Wsdl420'};
public String placeOrder(Integer pProductId,Integer pCustomerId,Integer pQuantity) {
dbconnection1Mywebservice1WsdlTypes420.placeOrderElement_element request_x = new dbconnection1Mywebservice1WsdlTypes420.placeOrderElement_element();
dbconnection1Mywebservice1WsdlTypes420.placeOrderResponseElement_element response_x;
request_x.pProductId = pProductId;
request_x.pCustomerId = pCustomerId;
request_x.pQuantity = pQuantity;
Map<String, dbconnection1Mywebservice1WsdlTypes420.placeOrderResponseElement_element> response_map_x = new Map<String, dbconnection1Mywebservice1WsdlTypes420.placeOrderResponseElement_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://dbconnection1/MyWebService1.wsdl/placeOrder',
'http://dbconnection1/MyWebService1.wsdl/types/',
'placeOrderElement',
'http://dbconnection1/MyWebService1.wsdl/types/',
'placeOrderResponseElement',
'dbconnection1Mywebservice1WsdlTypes420.placeOrderResponseElement_element'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
}

}
}

and s-control ,
<html>

<head>

<script type="text/javascript" src="/js/functions.js"></script>

<script src="/soap/ajax/10.0/connection.js"></script>

<script src="/soap/ajax/10.0/apex.js"></script>

<script>

function X(a,b,c) {

try{

var result = sforce.apex.execute("test420" ,"test1", {a,b,c});



document.getElementById('userNameArea').innerHTML = 'Congratulations!'

+ + result;

}

catch (ex)

{

alert ("Failed : " + ex);

}

}

</script>

</head>
<form>
<body >
Product ID:<input type="text" id="name">

<br></br>

Customer ID:<input type="text" id="CSid">

<br></br>

Quantity:<input type="text" id="Qid">

<br></br>

<input type="submit" value="submit" onclick=X(name,CSid,Qid)>

<hr></hr>

</body>
</form>
</html>
and i have created webtab , so if i click i am gettting this error,....
http://192.168.200.78:7777/PLSQLWEB-PLSQL-context-root/MyWebService1SoapHttpPort

URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com.

You may have reached this page after clicking on a direct link into the application. This direct link might be:
• A bookmark to a particular page, such as a report or view
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link
• A link to a particular page in your email templates

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark.

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link.

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience.



thanks
Laxmi
  • May 22, 2008
  • Like
  • 0
Hi all, 
this is the source code for webservice and s-control,how to relate the both, as soon as
i submit the values it should call the webservice method. here i have entered static values
but i want enter manually.
and actually after creation of webservice for the fields for some object how to verify it.
how to know whether it is created or not. i have done many examples on this. but i am getting a
blank page as soon as i click on webtab.

global class testSalesforce1{
WebService static string test1(string result)
{

dbconnection1Mywebservice1Wsdl1.MyWebService1SoapHttpPort stub =
new dbconnection1Mywebservice1Wsdl1.MyWebService1SoapHttpPort();

return result = stub.placeOrder(1, 1, 1);


}}

<html>

<head>

<script type="text/javascript" src="/js/functions.js"></script>

<script src="/soap/ajax/10.0/connection.js"></script>

<script src="/soap/ajax/10.0/apex.js"></script>

<script>

function X(a,b,c) {

try{

var result = sforce.apex.execute("testSalesforce1" ,"test1", {a,b,c});



document.getElementById('userNameArea').innerHTML = 'Congratulations!'

+ + result;

}

catch (ex)

{

alert ("Failed : " + ex);

}

}

</script>

</head>

<body onclick=X(a,b,c)>

Product ID:<input type="text" id="name">

<br></br>

Customer ID:<input type="text" id="id">

<br></br>

Quantity:<input type="text" id="id">

<br></br>

<input type="submit" value="submit">

<hr></hr>

<div id=userNameArea

>

</div>

</body>

</html>

Thanks
laxmi
  • May 20, 2008
  • Like
  • 0
Hi all,,,
        i want to pass three values to the class testSalesforce1 which is an webservice classs, if i click on submit button
nothing is happenening, so is this correct code,
actually as soon as i click on submit button those 3 values should come to this class ,can u help ...   
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script src="/soap/ajax/10.0/apex.js"></script>
<script>
function X(a,b,c) {
try{
var result = sforce.apex.execute("testSalesforce1" ,"test1", {a,b,c});

document.getElementById('userNameArea').innerHTML = 'Congratulations!'
+ + result;
}
catch (ex)
{
alert ("Failed : " + ex);
}
}
</script>
</head>
<body onclick=X(a,b,c)>
Product ID:<input type="text" name="a" id="name">
<br></br>
Customer ID:<input type="text" name="b" id="id">
<br></br>
Quantity:<input type="text" name="c" id="id">
<br></br>
<input type="submit" value="submit">
<hr></hr>
<div id=userNameArea
>
</div>
</body>
</html>
  • May 19, 2008
  • Like
  • 0
hi all
can u help me , how to overcome this blank page, as u suggested that we should fill up something in username area i did
that, might be it is wrong i m still getting blank page,
so please can u write the code .






Thanks
laxmi
  • May 16, 2008
  • Like
  • 0
hi all,


here i have created webservice class and s-control and web tab , if i click on the
tab, i am getting blank page, so what should be done , i am actually doing here salesforce to
oracle integration. what ever the data i enter in salesforce should be stored in oracle database using pl/sal
webservice.(the creation of pl/sql webserivce has been done).


global class testSalesforce1{
WebService static string test1(string result)
{

dbconnection1Mywebservice1Wsdl1.MyWebService1SoapHttpPort stub =
new dbconnection1Mywebservice1Wsdl1.MyWebService1SoapHttpPort();

return result = stub.placeOrder(1, 1, 1);


}}

<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script src="/soap/ajax/10.0/apex.js"></script>
<script>
function X(a,b,c) {
try{
var result = sforce.apex.execute("testSalesforce1" ,"test1", {1,1,1});
}
catch (ex)
{
alert ("Failed : " + ex);
}
}
</script>
</head>
<body onload=X()>
<div id=userNameArea></div>
</body>
</html>

thanks in advance
laxmi
  • May 16, 2008
  • Like
  • 0
how to generate custom report........
  • May 13, 2008
  • Like
  • 0
hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
   new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

  string result = stub.placeOrder(1, 2, 3);
return result;

}}

i have created s-control for this and webtab .
if i click on the tab its giving an error...

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}
  what does it mean, how to overcome from this problem

thanks
laxmi
  • May 13, 2008
  • Like
  • 0
hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
   new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

  string result = stub.placeOrder(1, 2, 3);
return result;

}}

i have created s-control for this and webtab .
if i click on the tab its giving an error...

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}
  what does it mean, how to overcome from this problem

thanks
laxmi
  • May 12, 2008
  • Like
  • 0
hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

string result = stub.placeOrder(1, 2, 3);
return result;

}}


thanks
laxmi
  • May 09, 2008
  • Like
  • 0
hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
   new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

  string result = stub.placeOrder(1, 2, 3);
return result;

}}

i have created s-control for this and webtab .
if i click on the tab its giving an error...

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}
  what does it mean, how to overcome from this problem

thanks
laxmi


Message Edited by laxmi on 05-13-2008 01:31 AM
  • May 09, 2008
  • Like
  • 0
Hi all,
This is the code which is generated from the wsdl2apex, how to write webservice for
this code, please help me out.


public class dbappsMywebservice1WsdlTypes {
public class placeOrderElement_element {
public Integer pProductId;
public Integer pCustomerId;
public Integer pQuantity;
private String[] pProductId_type_info = new String[]{'pProductId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pCustomerId_type_info = new String[]{'pCustomerId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pQuantity_type_info = new String[]{'pQuantity','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbapps/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'pProductId','pCustomerId','pQuantity'};
public String endpoint_x = 'http://www.example.com/webservice.asmx';
}
public class placeOrderResponseElement_element {
public String result;
private String[] result_type_info = new String[]{'result','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbapps/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'result'};

}
}


public class dbappsMywebservice1Wsdl {
public class MyWebService1SoapHttpPort {
public String endpoint_x = 'http://192.168.200.78:8888/PLSQLWEB-AppsWS-context-root/MyWebService1SoapHttpPort';
private String[] ns_map_type_info = new String[]{'http://dbapps/MyWebService1.wsdl/types/', 'dbappsMywebservice1WsdlTypes', 'http://dbapps/MyWebService1.wsdl', 'dbappsMywebservice1Wsdl'};
public String placeOrder(Integer pProductId,Integer pCustomerId,Integer pQuantity) {
dbappsMywebservice1WsdlTypes.placeOrderElement_element request_x = new dbappsMywebservice1WsdlTypes.placeOrderElement_element();
dbappsMywebservice1WsdlTypes.placeOrderResponseElement_element response_x;
request_x.pProductId = pProductId;
request_x.pCustomerId = pCustomerId;
request_x.pQuantity = pQuantity;
Map<String, dbappsMywebservice1WsdlTypes.placeOrderResponseElement_element> response_map_x = new Map<String, dbappsMywebservice1WsdlTypes.placeOrderResponseElement_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://dbapps/MyWebService1.wsdl/placeOrder',
'http://dbapps/MyWebService1.wsdl/types/',
'placeOrderElement',
'http://dbapps/MyWebService1.wsdl/types/',
'placeOrderResponseElement',
'dbappsMywebservice1WsdlTypes.placeOrderResponseElement_element'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
}
}
Thanks
laxmi
  • May 08, 2008
  • Like
  • 0
Hi all,
this is code which is generated by pl/sql webservice, from the wsdl code , please tell
whether it is correct?

public class dbappsMywebservice1WsdlTypes {
public class placeOrderElement_element {
public Integer pProductId;
public Integer pCustomerId;
public Integer pQuantity;
private String[] pProductId_type_info = new String[]{'pProductId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pCustomerId_type_info = new String[]{'pCustomerId','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] pQuantity_type_info = new String[]{'pQuantity','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbapps/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'pProductId','pCustomerId','pQuantity'};
public String endpoint_x = 'http://www.example.com/webservice.asmx';
}
public class placeOrderResponseElement_element {
public String result;
private String[] result_type_info = new String[]{'result','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] apex_schema_type_info = new String[]{'http://dbapps/MyWebService1.wsdl/types/','true'};
private String[] field_order_type_info = new String[]{'result'};

}
}
  • May 07, 2008
  • Like
  • 0
global class testSalesforce{
WebService static string test1(string name) {
dbappsMywebservice1WsdlTypes stub = new dbappsMywebservice1WsdlTypes ();
return name;}}


is this correct code?
  • May 07, 2008
  • Like
  • 0
hi all,


        I am new to this webservice concept, i have created small exapmle of webservice and created the webtab
also how to link the webtab and s-controle, what should i write in s-controle



help me,



thanks

  • May 07, 2008
  • Like
  • 0
which database does the salesforce use, how to retrive the values from the database
  • May 07, 2008
  • Like
  • 0
( i am doing salesforce webservice to oracle pl/sql webservice integration)
I have already have the apex classes which are developed by wsdl class, i have created an webservice for generated apex class and i have created custom s-contole and tab . if i click on that tab its giving an error.....i,e

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}

can u help me

Thanks
  • May 07, 2008
  • Like
  • 0
hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
   new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

  string result = stub.placeOrder(1, 2, 3);
return result;

}}

i have created s-control for this and webtab .
if i click on the tab its giving an error...

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}
  what does it mean, how to overcome from this problem

thanks
laxmi


Message Edited by laxmi on 05-13-2008 01:31 AM
  • May 09, 2008
  • Like
  • 0