Development kits

Access to user defined tables via SOA?

Is it possible to access user defined tables via SOA? Are there any code examples or documentation on this?
Thanks

15.2 SOA Product Pricing error

 

This is wilth tech support as an SMR, but have not had a response in a few days.so  thought I would post here too incase anyone has had a similar problem and has suggestions.

 

Hello,

I am getting the following error when I try to get product pricing information using SOA calls.

The functionality is working fine on my development machine, but get this error when install on the client servers. I checked the product and there is member/nonmember pricing, the product looks similar to the set-up on the local machine that works.

I can add the product to the cart, but the pricing is zero, so leads me to believe the proper pricing is not being found that returns the null reference object.

Let me know what I else I can provide to get this web service call working.

Thanks Nick

CommerceManager.GetPartyItemPrice
Asi.Soa.Commerce.Persistence.V10.PartyItemPriceLinqDefinition.GetEntity()

Service Error:

An error has occurred while consuming this service. Please contact your administrator for more information. Error ID: e187ab14-3baf-48b2-8c6c-82e72c89bfe4
Timestamp: 3/27/2012 9:07:55 AM
Message Id: e187ab14-3baf-48b2-8c6c-82e72c89bfe4
An exception of type 'NullReferenceException' occurred
Type: NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Asi.Soa.Commerce.Persistence.V10
Stack Trace: at Asi.Soa.Commerce.Persistence.V10.PartyItemPriceLinqDefinition.GetEntity() in c:\Builds\42\ScrumV3\15.2.0_Main15_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Commerce.Persistence.V10\LinqDefinitions\PartyItemPriceLinqDefinition.cs:line 274
at Asi.Soa.Core.Persistence.LinqPersistenceTranslator.PersistenceInstanceToEntity(Object persistenceInstance) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Persistence\Linq\LinqPersistenceTranslator.cs:line 78
at Asi.Soa.Core.Persistence.LinqQuery.TranslateLinqQueryResultsToEntityIdentityMapList(Repository repository, ExtendedEntityDefinition extendedEntityDefinition, IQueryable queryable) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Persistence\Linq\LinqQuery\LinqQuery.cs:line 104
at Asi.Soa.Core.Persistence.LinqQuery.ExecuteQuery(QueryData query) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Persistence\Linq\LinqQuery\LinqQuery.cs:line 124
at Asi.Soa.Core.Persistence.LinqPersistenceStrategyBase.FindMatching(QueryData query) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Persistence\BaseClasses\LinqPersistenceStrategyBase.cs:line 145
at Asi.Soa.Core.Domain.Repository.FindMatching(QueryData query) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Domain\Repository\Repository.cs:line 416
at Asi.Soa.Core.Services.EntityService.Find(QueryData query) in c:\Builds\42\ScrumV3\15.2.0_MainFoundation_Commit\Sources\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Services\EntityService.cs:line 223
at SyncInvokeFind(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException`1Asi.Soa.Core.DataContracts.Faults.ServiceFault, Asi.Soa.Core.Contracts, Version=100.0.1.122, Culture=neutral, PublicKeyToken=null: Service Error:

An error has occurred while consuming this service. Please contact your administrator for more information. Error ID: e187ab14-3baf-48b2-8c6c-82e72c89bfe4
Timestamp: 3/27/2012 9:07:55 AM
Message Id: e187ab14-3baf-48b2-8c6c-82e72c89bfe4
An exception of type 'NullReferenceException' occurred
Type: NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Asi.Soa.Commerce.Persistence.V10
Stack Trace: at Asi.Soa.Commerce.Persistence.V10.PartyItemPriceLinqDefinition.GetEntity()

Populating SOURCE_CODE and CAMPAIGN_CODE for a ComboOrderData

I'm trying to populate the SOURCE_CODE and CAMPAIGN_CODE columns within the dbo.Trans table when creating a new order using the SOA.

I notice that there is a property named "SourceCode" on the OrderData class, and I've tried setting it to a valid SourceCode, but it seems to be ignored and it's empty in the DB.

I can't find a property to populate the CAMPAIGN_CODE

SOA Documentation

The documentation for SOA needs to be fixed up. For example:

http://docs.imis.com/SOA/index.htm?turl=commonoperations.htm

has a line saying "To Use Find - (TBD) - Include  a query". The query object should really be documented. This page also has "The details are removed:" everywhere.

On this page:

http://docs.imis.com/SOA/index.htm?turl=usingtheclientlibrar.htm

Multiple Entity WCM Setup

For a multiple entity iMIS setup, is it possible to set up online cash accounts (W_VISA) for multiple entities and set a variable on the site, product/event or page level to declare what entity/cash account the financial transaction should be processed through.

two entities: ABC and XYZ both have their own financial accounts and are two separate organizations, but they share the same iMIS database. For the desktop operations, they've setup cash accounts for A_VISA and X_VISA (same for MC and AMEX) to distinguish one entity from the other. Now whence getting WCM setup, will have two separate sites ABC.org and XYZ.org within WCM. Is it possible to set financial transactions on ABC.org to use W_A_VISA and XYZ.org to use W_X_VISA cash accounts? Or is there a way to at the product, event or even function level declare the entity that would then drive the cash account used? I am aware that events and functions have an entity code/setting, but does that drive cash accounts used for CC processing?

WCM 1600 Template Member/Non-Member Homepage

We've a client who has a WCM site using the 1600 template. They're looking to incorporate a homepage variation based on authorization, basically, having a Member Homepage and an Non-Member homepage.

We've tried using the 'AuthScript' code that is utilized for the Aspen themed Member site, but that 'breaks' the homepage design (gives the homepage the interior page layout), so that's not working. We've considered creating a navigational component for the MemberHome page that would not go into the navigation and a similar 'AuthScript' would be utilized to redirect if a user is logged in. The member home page would then use a different content area directory for the homepage design content, but this does not appear to be working as intended.

Setting IMISWebServerURL key within a class library dll

We are tryiing to use the iBO dlls within a custom class library that we are writing.  Would anyone know how to set the iMISWebServerURL key that is normally in the web.config file in the coding of the class library(dll) that we are writing? 

<appSettings><add key="System.WebLogin" value="MANAGER"/><add key="iBOCacheRefreshIntervalSeconds" value="300"/><add key="ImisWebServerUrl" value="http://localhost/imis15"/><appSettings>

SOA Orders Cart Example

 

Hello,

I have a customer that is using an external CMS (not WCM) and wants to access iMIS store functionality.

I want to create some SOA where they can add a product to the cart and checkout when finished their shopping. The checkout is through iMIS and Paypal.

I have searched this site, reviewed some discussions, downloaded a few samples zips people have provided, but can not get the required functionality working.

SOA How To Using PHP SOAP

This how-to/example set was created because we could not find any easy complete examples of how to interface with the iMIS SOA using PHP SOAP. Please download the attached PHP file (remove .txt extension) to view and test the working examples.

Important Notes:

  • Set the $baseURL to your iMIS webservices.
  • Allow access to the MembershipWebService and QueryService in web.config file in the net directory.

SOA - Relationships

Is anyone creating relationships with SOA on 15.2? It looks like PartyRelationship went away with this release. We can pull a party's relationships using a FindRelationshipsRequest but have been unable to create new relationships. We've tried playing with group membership but we're unable to create a relationship group role. The question is: is creating a new relationship (and maintaining existing ones) supported in SOA with 15.2? If so can someone please point me to some sample code or documentation?