Business Catalyst Problem Using API to insert/update
Hi,
I am trying to use the API to insert/update products. But have been getting the following error in the response.
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Length: 370
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.0
Date: Tue, 05 Jun 2012 22:11:39 GMT
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>Error</faultcode>
<faultstring>ERROR: A server error has occured.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
I have looked through my request and cant see anything wrong so was wondering if anyone else can, or if there is something I have missed (or not setup properly), i'm sure its probably an obviously mistake that i just cant find. below is my request
POST /CatalystWebService/CatalystEcommerceWebservice.asmx HTTP/1.0
Host: {HOST}.worldsecuresystems.com
User-Agent: NuSOAP/0.9.5 (1.123)
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice/Product_UpdateInsert"
Content-Length: 1525
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns9872="http://tempuri.org">
<SOAP-ENV:Body>
<Product_UpdateInsert xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice">
<username>{USER}</username>
<password>{PASSWORD}</password>
<siteId>{SITEID}</siteId>
<productList>
<Products>
<productId>1</productId>
<productCode>test1</productCode>
<description>test desc</description>
<smallImage>/images/test_small.jpg</smallImage>
<largeImage>/images/test.jpg</largeImage>
<cataloguesArray>
<string>Products</string>
</cataloguesArray>
<pricesSaleArray>
<string>GB/9.99</string>
</pricesSaleArray>
<pricesRetailArray>
<string>GB/18.99</string>
</pricesRetailArray>
<supplierEntityId>-1</supplierEntityId>
<minUnits>-1</minUnits>
<maxUnits>-1</maxUnits>
<inStock>2</inStock>
<onOrder>-1</onOrder>
<reOrder>-1</reOrder>
<inventoryControl>false</inventoryControl>
<enabled>false</enabled>
<deleted>false</deleted>
<downloadLimitCount>-1</downloadLimitCount>
<limitDownloadsToIP>-1</limitDownloadsToIP>
<isOnSale>false</isOnSale>
<productWeight>-1</productWeight>
<productWidth>-1</productWidth>
<productHeight>-1</productHeight>
<productDepth>-1</productDepth>
<cycletypeId>0</cycletypeId>
</Products>
</productList>
</Product_UpdateInsert>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Many Thanks
Tim
I am successfully doing API Product Updates, not tried Creates yet.
From the WSDL you need theses fields;
'supplierCommission' => 0, // type="s:double"/>
'weight' => 2, // type="s:int"/>
'inventoryControl' => false, // type="s:boolean"/>
'canPreOrder' => false, // type="s:boolean"/> 'captureDetails' => false, // type="s:boolean"/>
'isOnSale' => true, // type="s:boolean"/>
'hideIfNoStock' => false, // type="s:boolean"/>
'isGiftVoucher' => false, // type="s:boolean"/>
'enableDropShipping' => false, // type="s:boolean"/>
excludeFromSearch' => false, // type="s:boolean"/>
'cycletypeCount' => -1, // type="s:int"/>
+ the other arrays or the update wipes out data.
Experimentation seems to be the key
Similar Messages
-
Hi
What mechanism Oracle 10g use for write (Insert/ Update) and Read (Select)?
Thank youAren't the answers given in PL/SQL forum sufficient enough?Well, as the first answer in that forum directed the OP to this forum you can hardly blame them for the repost.
There is some high-level stuff in the Concepts Guide. If that is insufficient the OP will need to tell us what more details they need to know (and perhaps why).
Cheers, APC -
Can't connect to business catalyst server using dreamweaver
I can't connect to the business catalyst server using dreamweaver. It prompts incorrect username or password, but it's not though. I'm traying to import a templet from business catalyst to change the background to a personal image.
Can't find out how els to do it so I'm trying this.
Unless someone knows how els I can do that
Help appreciatedIt prompts incorrect username or password, but it's not though.
This prompt itself means that your login credentials are wrong. Double, triple check the ID and password you're using to try to login to BC.
Try logging in from here: http://www.businesscatalyst.com/admin/Index.aspx to see if you're able to. If not, reset your password from here. -
Is there any API to insert/update RA_TERRITORIES table
Hi
I have to create diff territory combinations for new customer creation.
Is there any API for inserting records to RA_TERRITORIES table.
I did n,t find any thing related to this.
Thanks&Regards
RSHi,
Thanks for the reply,
But JTF_TERRITORY_PUB is not updating ra_territories table.
I think its not useful for my purpose. -
Can business catalyst be used on external content
Good afternoon,
We use Business Catalyst for a few sites, and really find the metrics and site information useful. We have some content that we would like to keep on our own local servers, and we were wondering if there is a way we can set up business catalyst to be able to give us the same information on the content we host locally, or if it can only work for hosted content.
Thanks!Create pages with only contain the information you want to see on your internal site (sort of like a widget), you wont need a header and footer, just the one thing you want. Pull that content from your internal site using AJAX. The only issue is that if you use multiple of these elements your stats will be times that many. For example if you create 10 pages with the elements you need each AJAX page request (on your local server) will pull 10 page requests. So if you know how many you have you'll have to divide your stats by that. If you don't care so much for the stats then no problems.
-
API for inserting/updating system profile option values
Hi,
Is there any API that I can use to insert/update system profile option values via PL/SQL?
Regards,
Santhosh JoseHi Santosh,
You can think of using the FNDLOAD utility to download the values from one instance and upload to other instance.
## Now lets have a look at the profile option using oracle's FNDLOAD
FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt PROFILE PROFILE_NAME="POR_ENABLE_REQ_HEADER_CUST" APPLICATION_SHORT_NAME="ICX"
## Note that
## POR_ENABLE_REQ_HEADER_CUST is the short name of profile option
## We aren't passing the user profile option name in this case. Validate using ...
########----->select application_id, PROFILE_OPTION_NAME || '==>' || profile_option_id || '==>' ||
########----->USER_PROFILE_OPTION_NAME
########----->from FND_PROFILE_OPTIONS_VL
########----->where PROFILE_OPTION_NAME like '%' || upper('&profile_option_name') || '%'
########----->order by PROFILE_OPTION_NAME
########----->/
## Now to upload
FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt
For other config components download and upload you can refer the link- http://www.apps2fusion.com/apps/scripts/19-oracle-fndload-script-examples
Thanks,
Sanjay -
Business Catalyst Problems?
Any ideas? I have signed up to Creative Cloud and downloaded all the apps to my PC and everything is working fine except i cant use Business Catalyst!
Im running a high end cutom built PC with Windows 8 Pro so i dont think its the system - i have uninstalled and re-installed with no joy...
Any sugestions?
ThanksYou need to post in the appropriate forum. The nearest I could find is this:
<http://forums.adobe.com/community/business_catalyst?view=discussions>
Good luck. -
Do I need to use Business Catalyst to use the built-in forms?
I use FTP voyager to host my website. I have a contact form on my website, when I fill out the form this dialog box appears: "This standard HTML form is configured to work with Adobe Business Catalyst". Once I click OK I then get the message the from has been sent and recieved, I check my email and I have not recieved an email.
Can somebody please tell me if there is something I need to do to overcome this issue, or do forms not work unless you are using Buinsess Catalyst?I'm sorry. At this time, contact forms only work using Business Catalyst. Please see this forum thread for more info:
http://forums.adobe.com/message/4608066#4608066#4608066#4608066
Hope this help,
Julia -
Business Catalyst Help | Using consolidated billing to manage client invoices
This question was posted in response to the following article: http://helpx.adobe.com/business-catalyst/partner-portal/using-consolidated-billing-client- invoices.html
A lot of the images are not rendering on this page.
Tried it in Safari and Chrome on a Mac. -
Can following query be used to find inserted update records.
hi,
i am using query1) to insert data query2) to update the record
query1)
INSERT INTO [t1]
( id
,createddatetime
,updateddatetime)
VALUES
(1
,GETDATE()
,GETDATE())
query2)
update t1 set updatedatetime=getdate() where id=@t1
please tel me will two date cols get same time , that is, will i be able to
write following to find inserted/updated rows
if exists(select * from t1 where createddt1=updateddt2)
begin
select 'inserted'
end
else
begin
select 'updated'
end
yours sincerelyDepending on how you execute both the queries there's a small chance date value comparison may not wok as expected as datetime also has timepart until milliseconds precision. So if you want to retrieve details on records inserted and updated you may use
something like below
query 1
DECLARE @dt datetime
SET @dt = GETDATE()
INSERT INTO [t1]
( id
,createddatetime
,updateddatetime)
VALUES
(1
,@dt
,@dt)
query2
DECLARE @dt datetime
SET @dt = GETDATE()
update t1 set updatedatetime=@dt where id=@t1
then you can do below to get inserted updated detailsif exists(select * from t1 where createddt1=updateddt2)begin select 'inserted'end elsebegin select 'updated'end
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Provides an overview of the Business Catalyst features built into CS6, working with module templates from this interface and display some new features like code completion and related files
http://adobe.ly/IG4zEvI got 2 minutes and 25 seconds into this tutorial and the functionality contained in the tutorial simply does not exist on my copy of DW.
There are only about 5 modules available and the site admin seems to have about 5% of the functionality listed in the tutorial. -
Mutating Error problem using audit trigger for UPDATE
I need to add 4 columns to all of my tables named:
INSERT_BY
INSERT_DATA
UPDATE_BY
UPDATE_DATE
I intend these to act as "inserted" and "last updated" audit trails within the table, as opposed to creating a new table and storing the audit information there. The insert columns appear to be easy, as I can just use a DEFAULT clause within the definition of the table. However when I attempted to write a (my first) trigger then I run into problems with mutating tables. Presumebly because I am attempting to change the table while the trigger is referencing it.
create or replace trigger test_audit
after update on dictionary
begin
update dictionary
set update_by = user, update_date = sysdate
where entity_id = :old.entity_id;
end;
I thought I could maybe get around this by calling a procedure from inside the trigger. Something like:
create or replace procedure test_audit(vColumn in varchar2, vData in varchar2, vTable in varchar2) is
-- vTable is table name
-- vColumn is PK of table
-- vData is value of PK in current row
begin
update vTable
set update_by = user, update_date = sysdate
where vColumn = vData;
commit;
end test_audit;
However I cannot use variable for table names. Will this mean I have to create a procedure for each table/trigger? Is there a way to reference the table name as a variable and keep this a generic procedure? Or is there an easier way to record the auditing UPDATE information for each changed row within the original table?
Many thanks in advance......Will
this mean I have to create a procedure for each
table/trigger? I think you've answered that question already.
Is there a way to reference the table
name as a variable and keep this a generic procedure?Not that I'm aware of.
Or is there an easier way to record the auditing
UPDATE information for each changed row within the
original table?Well, there's the AUDIT feature.
C. -
Cursor problem ! (equivalents for insert, update and delete)
Hi,
I am having following three sql statements. I am using Oracle 8i.
====================================================================================================================
Statement1 : Insert
Insert Into DBSchema.DstTableName( dstCol1, dstColP, dstColKey, dstCol2, dstCol3, dstCol4, dstCol5, dstCol6 )
( SELECT DbSchema.Seq.nextval, srColP, srColKey, srCol1, srCol2, nvl(srCol3,0), nvl(srCol4,0), SYSDATE
From
SrcTableName SRC
Where
srcColP IS NOT NULL AND
NOT EXISTS
(SELECT 1
From
DBSchema.DstTableName Dst
Where
SRC.srcColP = DST.dstColP AND SRC.srcColKey = DST.dstColKey )
====================================================================================================================
Statement2 : Update
Update DBSchema.DstTableName dst
SET ( dstCol1,dstCol2,dstCol3,dstCol4, dstCol5)
=
( SELECT srCol1, srCol2, nvl(srCol3,0), nvl(srCol4,0), SYSDATE
From
SrcTableName src
Where
src.srcColP = dst.dstColP AND SRC.srcColKey = DST.dstColKey
WHERE EXISTS (
SELECT
1
From
SrcTableName SRC
Where
SRC.srcColP = DST.dstColP AND SRC.srcColKey = DST.dstColKey ) ;
====================================================================================================================
Statement3 : Delete
Delete
FROM DBSchema.DstTableName DST
Where Exists (
SELECT
1
From
SrcTableName SRC
Where
src.srcColP = dst.dstColP )
AND NOT EXISTS
SELECT
1
From
SrcTableName SRC
Where
src.srcColP = dst.dstColP AND SRC.srcColKey = DST.dstColKey ) ;
====================================================================================================================
For the above three statement I have written the following cursor.
Equivalent Cursor:
PROCEDURE DEMOPROC
is
loop_Count integer := 0;
insert_Count integer := 0;
CURSOR c1
IS
SELECT src.srcCol1,
src.srcCol2,
src.srcCol3,
src.srcCol4,
src.srcCol5,
src.srcCol6,
src.srcCol7,
src.srcCol8,
src.srcCol9,
src.srcColKey,
src.srcColP
FROM
SrcTableName SRC
Where src.srcColP IS NOT NULL
AND NOT EXISTS
(SELECT 1
From
DBSchema.DstTableName Dst
Where
src.srcColP = DST.dstColP AND src.srcColKey = DST.dstColKey )
BEGIN
FOR r1 in c1 LOOP
Insert Into DBSchema.DstTableName( dstCol1, dstColP, dstColKey, dstCol2, dstCol3, dstCol4, dstCol5, dstCol6 )
values(DBSchema.Seq.nextval, r1.srcColP, r1.srcColKey, r1.srcCol1, r1.srcCol2, nvl(r1.srcCol3,0), nvl(r1.srcCol4,0), SYSDATE);
Update DBSchema.DstTableName dst
SET dst.dstCol1=r1.srcCol1 , dst.dstCol2=r1.srcCol2,
dst.dstCol3=nvl(r1.srcCol3,0),
dst.dstCol4=nvl(r1.srcCol4,0),
dst.dstCol5=SYSDATE
Where
r1.srcColP = dst.dstColP
AND
r1.srcColKey = DST.dstColKey ;
Delete
FROM DBSchema.DstTableName DST
Where
r1.srcColP = dst.dstColP ;
insert_Count := insert_Count + 1 ;
/* commit on a pre-defined interval */
if loop_Count > 999
then begin
commit;
loop_Count := 0;
end;
else loop_Count := loop_Count + 1;
end if;
end loop;
/* once the loop ends, commit and display the total number of records inserted */
commit;
dbms_output.put_line('total rows processed: '||TO_CHAR(insert_Count)); /*display insert count*/
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM);
END;
====================================================================================================================
I am not sure whether this cursor is right or not, have to verify it.
In delete and insert statements there is same where not exist clause in the original statement so I included that in my cursor declaration but not sure whether update will work with that or not.
I have to use the three statements mentioned above for few source and destination tables and each are having many rows. How do i tune it ?
What else can be done to improve the performance with the the three statements mentioned above.
Any help will be highly appreciated.
Thanks !
Regards,You wont any anything extra by creating mulitple threads of the same question. Instead of this just provide the full information wht have been asked so that someone here can helpo you. If you keep doing like this then you will put yourself in our's negative list and that's not good for you.
Daljit Singh -
Problems using Itunes since last update (10.3.1.55)
Hi
I am experiencing problems trying to use itunes since it last updated and installed the latest version (10.3.1.55), a version which seems to be be really faulty if you look at the level of discussions it is generating.
My problems concern my library:
I used to be able to just click on a song to start it: now it won't. I have to either right click and select play 'x' or attempt the 'controls' button several times before its menu is willing to drop for me to select play
I used to be able to also move from one song to another also by clicking on it. Now I can't
I was also listening to a language programme and could not go back or even stop the listening function
the cover 'flow' (view mode) certainly does not flow any more. It is very judery and seems to have a life of its own!
Basically most functions perform poorly or not at all...
I have not attempted to sync with my Ipod as I am not sure whether there is a danger its content might "disappear"!
Either it is a case of someone out there has a brillant idea how to resolve this or Apple gets its act together and releases a better version pronto!
Many thanks
PS: I use Vista home premium 32 bit.Due to the number of problems with "upgrading" to this OS level, I suggest you try the very clean and very forceful AutoLoader OS Reload:
http://supportforums.blackberry.com/t5/BlackBerry-10-OS-Device-Software/Upgrading-OS10-devices-using...
Beware that it is completely destructive...the device will be "like new"...no data, no apps, no accounts, etc. Be sure you take a full backup first, as well as make full manual documentation of all apps, accounts, configurations, etc. Sometimes a restore reintroduces the very corruption one is trying to eliminate, and manual reconfiguration is necessary.
You can also use this to fall back to a prior OS if you desire...you can install any OS level for which you can find an AutoLoader. (Hint...search over on the CB site!)
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Problems using creating Objects after Updating to 3.0.1
Hi folks,
the update from 2.0.1 or so to 3.0.1 in the 10g XE had brought up more new aspects and changes than expected...
The - hopefully- last problem I encounter now is that I cannot create objects anymore in the SQL Workshop.
If I try to create a new table in the end the error message reads
ORA-01031: Insufficent privileges
The same for a test sequence... I didn't change anything to my existent schema users, they are assigend the "ressource" role, so it should work fine. If I connect to the DB via an development tool like sqlplus the table is created - as expected.
In the apex user administration I found no section for setting additional privileges...
Can anyone help me to establish the privileges to my old users/schemes so that the SQL Workshop is working again? Even with a new administrator account in a new workspace on an old schema the workshop can't create a table.
Thanks alot.
Ragnusthanks, I solved by myself.
Here comes what it had been:
After upgrading all apps had been in workspaces named to the corresponding old schema user.
I wanted to consolidate the apps into one big workspace so they can share some components like authorization schema and so on.
I additionally assigned the schemes to the new workspace so there had been 2 workspace assignements for each schema. This had been a temporary consolidation situation until all apps had been exported from the old workspaces into the new one.
But development during this double assigned state seems to be not possible in the SQL Workshop.
After deleting an old workspace I can now create objects again in the now single workspace assigned schema.
Ragnus
Maybe you are looking for
-
Need help with a currently "in-use" form we want to switch to Adobes hosting service
Hi, I am in desperate need of help with some issues concerning several forms which we currently use a paid third party (not Adobe) to host and "re-distribute through email"...Somehow I got charged $14.95 for YOUR service, (signed up for a trial, but
-
My ipod nano 3rd generation, when connected by usb, does not show up in itunes, does not show up on my computer, does not seem to charge by the wall charger. It just has a black screen. Any ideas for me? I've run diagnostics. Can't find device. I've
-
I need to connect to an Oracle server Pubs database by using an ADO 2.6 . Please, paste some working code to connect( connection string like "provider = Oracle .." ...) . null
-
Connect ODI12c to Oracle Database in Cloud
Hi, Could anyone throw some light on how to connect ODI12c to Oracle and Non-Oracle Database hosted on Private or Public Cloud from on premise ODI12c instance? I have read an article by David Alan, explains connecting through SSL Tunnel. Is it the on
-
Network performance transferring to Apple TV
Can anyone tell me why I can only transfer from iTunes to my Apple TV at 1.1Mb when I have 5GHz N Network? I've had Apple TV for years and it's the bain of my life getting stuff from iTunes to it. I've tried the Ethernet Power Plugs, several routers