Adding a Service to CAF Tile
I've followed the steps in the docs and even looked at the StockData example provided but cannot seem to get it working. I get the following error:
Before resolve: http://localhost:4502/content/mosaic/catalogs/Historian/tiles/SnapshotTile/SnapshotTile.sw f
Before resolve: http://localhost:4502/content/mosaic/catalogs/Historian/services/HistorianService/theHisto rianService.gxml
Created url: http://localhost:4502/content/mosaic/catalogs/Historian/interfaces/HistorianInterfaceLibra ry/HistorianInterfaceLibrary.swf
Before resolve: http://localhost:4502/content/mosaic/catalogs/Historian/tiles/SnapshotTile/SnapshotTile.sw f
Before resolve: http://localhost:4502/content/mosaic/catalogs/Historian/tiles/SnapshotTile/SnapshotTile.sw f
[SWF] /content/mosaic/catalogs/Historian/interfaces/HistorianInterfaceLibrary/HistorianInterfac eLibrary.swf - 2,497 bytes after decompression
Failure in Loader: Error: Error #2036: Load Never Completed. URL: http://localhost:4502/Historian/interfaces/HistorianInterfaceLibrary/HistorianInterfaceLib rary.swf
Failure in Loader: Error: Error #2036: Load Never Completed. URL: http://localhost:4502/Historian/interfaces/HistorianInterfaceLibrary/HistorianInterfaceLib rary.swf
Below is the code as well as the configuration files:
IHistorianService.as
package cafe.historian.services
import mx.collections.IList;
[Expose]
public interface IHistorianService
function getSnapshots(userid:String):IList;
HistorianService.as
package cafe.historian.services.impl
import cafe.historian.services.IHistorianService;
import mx.collections.ArrayCollection;
import mx.collections.IList;
[Expose(catalog="Historian", library="HistorianInterfaceLibrary", scope="singleton")]
public class HistorianService implements IHistorianService
public function HistorianService()
public function getSnapshots(userid:String):IList{
var test:ArrayCollection = new ArrayCollection();
test.addItem("one");
test.addItem("two");
return test;
Historian.axml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Copyright 2011 Adobe Systems Incorporated. All rights reserved. The original
version of this material may be obtained from Adobe Systems Incorporated. -->
<app:Application xmlns:app="http://ns.adobe.com/Mosaic/Application/1.0/" xmlns:catalog="http://ns.adobe.com/Mosaic/Catalog/1.0/" xmlns:ct="http://ns.adobe.com/Mosaic/CommonTypes/1.0/" xmlns:tile="http://ns.adobe.com/Mosaic/Tile/1.0/" xmlns:view="http://ns.adobe.com/Mosaic/View/1.0/" label="EMS Historian" name="Historian">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<!-- Specifies a default panel or view to use when a user adds a new panel or
view to the composite application (if permitted). Specify a default directly,
or reference one from a composite application catalog. Referenced default
panels and views override the composite application defaults. Note: You can
specify only one panel and view in the app:Defaults section, but you can
specify any number of catalog:CatalogReference children. -->
<app:Defaults>
<view:Panels>
<view:Panel allowContentDelete="true" height="100%" label="Default Panel" tileChrome="full" width="100%">
<view:Layout name="HorizontalLayout" numColumns="2"/>
</view:Panel>
</view:Panels>
</app:Defaults>
<!-- Provide a global context containing values for use across entire
application.
<ct:Context>
<ct:Data key="myApplicationContext" type="string" value="default value" />
</ct:Context>
-->
<!-- A named context is useful for partition of a set of context values
to a subsection of the application.
<app:NamedContexts>
<ct:Context name="basictypes">
<ct:Data key="aSimpleString" type="string" value="sample string"/>
<ct:Data key="aBoolean" type="boolean" value="true"/>
<ct:Data key="anInteger" type="number" value="2011"/>
<ct:Data key="aDate" type="date" value="2011-11-01T19:00:00-05:00"/>
<ct:Data key="aNull" type="null" />
</ct:Context>
</app:NamedContexts>
-->
<!-- Specifies the runtime content for a composite application. The order of
the elements affects the appearance in the application user interface. You
can specify only one app:Shell or app:ShellReference element as a child of
app:Application. -->
<app:Shell label="Sample Shell" name="SampleShell"><!-- ShellStyle -->
<!-- Specifies a reference to a composite application catalog. Catalogs
contain composite application assets. The name attribute creates a
shorthand reference to the catalog, which is stored on the Experience
Server. -->
<catalog:CatalogReference name="${catalog}" uri="${catalog}"/>
<!-- Specifies a container to display views in the application user
interface. The order of elements affects the appearance of the user
interface. You can include only one view:ViewManager element as a child
of the app:Shell element. The default skin for the view:ViewManager
element provides a set of tab buttons to switch between views in the
application, as well as an Add button, and an option menu. -->
<view:ViewManager height="100%" width="100%">
<view:View name="Research"
height="100%" width="100%"
label="Research"
allowContentDelete="false">
<view:Panel allowContentDelete="false"
label="Analysis"
height="100%" width="100%"
styleName="PanelInShellStyle" ><!-- FullPanelTileStyle -->
<view:Layout name="HorizontalLayout"/>
<tile:TileReference catalog="${catalog}"
name="ResearchTile" optional="false" width="100%" height="100%" /><!-- TileStyle -->
</view:Panel>
</view:View>
<view:View label="Snapshots" height="100%" width="100%">
<view:Panel allowContentDelete="false"
label="Snapshots"
height="100%" width="100%"
styleName="PanelInShellStyle" >
<view:Layout name="HorizontalLayout"/>
<tile:TileReference catalog="${catalog}"
name="SnapshotTile" optional="false" width="100%" height="100%">
<tile:Properties>
<tile:Property name="historianService">
<tile:ServiceReference catalog="${catalog}" library="HistorianService" name="theHistorianService"></tile:ServiceReference>
</tile:Property>
</tile:Properties>
</tile:TileReference>
</view:Panel>
</view:View>
<view:View label="Views" height="100%" width="100%">
<view:Panel allowContentDelete="false"
label="Views"
height="100%" width="100%"
styleName="PanelInShellStyle" >
<view:Layout name="HorizontalLayout"/>
<tile:TileReference catalog="${catalog}"
name="ViewsTile" optional="false" width="100%" height="100%"/>
</view:Panel>
</view:View>
<view:View label="Reports" height="100%" width="100%">
<view:Panel allowContentDelete="false"
label="Reports"
height="100%" width="100%"
styleName="PanelInShellStyle" >
<view:Layout name="HorizontalLayout"/>
<tile:TileReference catalog="${catalog}"
name="ReportsTile" optional="false" width="100%" height="100%"/>
</view:Panel>
</view:View>
<view:View label="Admin" height="100%" width="100%">
<view:Panel allowContentDelete="false"
label="Admin"
height="100%" width="100%"
styleName="PanelInShellStyle" >
<view:Layout name="HorizontalLayout"/>
<tile:TileReference catalog="${catalog}"
name="AdminTile" optional="false" width="100%" height="100%"/>
</view:Panel>
</view:View>
</view:ViewManager>
</app:Shell>
</app:Application>
Historian.cxml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog:Catalog xmlns:catalog="http://ns.adobe.com/Mosaic/Catalog/1.0/" xmlns:ct="http://ns.adobe.com/Mosaic/CommonTypes/1.0/" xmlns:tile="http://ns.adobe.com/Mosaic/Tile/1.0/" xmlns:view="http://ns.adobe.com/Mosaic/View/1.0/" label="EMS Historian" name="Historian">
<!-- Identifying description for this catalog. -->
<ct:Metadata>
<ct:Description>All content for the EMS Historian</ct:Description>
</ct:Metadata>
<!-- Specifies a list of tiles (tile:TileClass elements) contained within
this catalog. -->
<tile:TileClassList>
<!-- Remove the commenting from this tile:TileClass element to
include a reference to a tile in this catalog. Within a tile:TileClass
element, a tile:Content child element specifies tile content using the
following attributes:
uri: A reference, either to absolute or relative, to the content's
location on a server.
contentType: The MIME type for the tile's content. For Flex tiles,
specify "application/x-shockwave-flash", and for HTML tiles
specify "text/html".
loadAs: For Flex tiles, if this value is "module", at run time the
tile loads as a Flex module. If the value is "default" or omitted,
at runtime the Flex tile loads as a SWF application.
IMPORTANT: You must compile module tiles using one of the Flex SDKs
included in the Adobe Experience Services Tooling for Flash Builder
installation. Flex modules are similar to Flash Runtime Shared
Libraries (RSLs) in that they separate code from an application
into separately loaded SWFs. For more information on modular
applications, see "Modular applications overview" in the Flex
Developer's Guide.
<tile:TileClass
name="SampleTile"
label="Sample Tile"
width="600" height="400"
fitContent="true">
<ct:Metadata>
<ct:Description>sample description</ct:Description>
</ct:Metadata>
<tile:Content
uri="${catalogURL}/tiles/SampleTile/SampleTile.swf"
contentType="application/x-shockwave-flash"
loadAs="default" />
</tile:TileClass>
-->
<tile:TileClass fitContent="true" height="100%" label="ResearchTile" loadPolicy="auto" name="ResearchTile" width="100%">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:Content contentType="application/x-shockwave-flash" loadAs="default" uri="${catalogURL}/tiles/ResearchTile/ResearchTile.swf"/>
</tile:TileClass>
<tile:TileClass fitContent="true" height="300" label="ViewsTile" loadPolicy="auto" name="ViewsTile" width="600">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:Content contentType="application/x-shockwave-flash" loadAs="default" uri="${catalogURL}/tiles/ViewsTile/ViewsTile.swf"/>
</tile:TileClass>
<tile:TileClass fitContent="true" height="300" label="SnapshotTile" loadPolicy="auto" name="SnapshotTile" width="600">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:Depends>
<tile:Interface interfaceName="cafe.historian.services.IHistorianService" library="HistorianInterfaceLibrary"/>
</tile:Depends>
<tile:Properties>
<tile:Property name="historianService" type="cafe.historian.services.IHistorianService"/>
</tile:Properties>
<tile:Content contentType="application/x-shockwave-flash" loadAs="default" uri="${catalogURL}/tiles/SnapshotTile/SnapshotTile.swf"/>
</tile:TileClass>
<tile:TileClass fitContent="true" height="300" label="ReportsTile" loadPolicy="auto" name="ReportsTile" width="600">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:Content contentType="application/x-shockwave-flash" loadAs="default" uri="${catalogURL}/tiles/ReportsTile/ReportsTile.swf"/>
</tile:TileClass>
<tile:TileClass fitContent="true" height="300" label="cafe.historian.tiles.admin.AdminTile" loadPolicy="auto" name="AdminTile" width="600">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:Content contentType="application/x-shockwave-flash" loadAs="default" uri="${catalogURL}/tiles/AdminTile/AdminTile.swf"/>
</tile:TileClass>
</tile:TileClassList>
<!-- Specifies a list of interface libraries (tile:InterfaceLibrary elements)
contained within this catalog -->
<tile:InterfaceLibraryList>
<!-- Remove the commenting from this tile:InterfaceLibrary element to
include a reference to an interface library in this catalog. Within a
tile:InterfaceLibrary element, a tile:InterfaceList child element
specifies a list of interfaces (tile:Interface elements) to include
in the catalog. For each tile:Interface element, specify the interface
class using the following attribute:
interfaceName: A fully-qualified package and class reference to class
that defines a service interface.
<tile:InterfaceLibrary name="SampleInterfaceLibrary">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:InterfaceList>
<tile:Interface interfaceName="com.adobe.adep.samples.services.sampleservice.ISampleService"/>
</tile:InterfaceList>
</tile:InterfaceLibrary>
-->
<tile:InterfaceLibrary name="HistorianInterfaceLibrary">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:InterfaceList>
<tile:Interface interfaceName="cafe.historian.services.IHistorianService"/>
</tile:InterfaceList>
</tile:InterfaceLibrary>
</tile:InterfaceLibraryList>
<!-- Specifies a list of service libraries (tile:ServiceLibrary elements)
contained within this catalog. -->
<tile:ServiceLibraryList>
<!-- Remove the commenting from this tile:ServiceLibrary element to
include a reference to a service library in this catalog. Within a
tile:ServiceLibrary element, a tile:ServiceClassList child element
specifies a list of service classes (tile:SeviceClass elements) to
include in the catalog. For each tile:ServiceClass element, specify a
service using the following attributes of the tile:Content child
element:
uri: A reference, either to absolute or relative, to the content's
location on a server.
contentType: The MIME type for the tile's content. For service
libraries specify "application/xml".
<tile:ServiceLibrary name="SampleService">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:ServiceClassList>
<tile:ServiceClass name="SampleService">
<tile:Content
uri="${catalogURL}/services/SampleService/SampleService-com-adobe-adep-samples-services-s ampleservice-impl.gxml"
contentType="application/xml"/>
</tile:ServiceClass>
</tile:ServiceClassList>
</tile:ServiceLibrary>
-->
<tile:ServiceLibrary name="HistorianService">
<ct:Metadata>
<ct:Description/>
</ct:Metadata>
<tile:ServiceClassList>
<tile:ServiceClass className="cafe.historian.services.impl.HistorianService" name="theHistorianService" scope="singleton">
<tile:Implements>
<tile:Interface interfaceName="cafe.historian.services.IHistorianService" library="HistorianInterfaceLibrary"/>
</tile:Implements>
<tile:Content contentType="application/xml" uri="${catalogURL}/services/HistorianService/theHistorianService.gxml"/>
</tile:ServiceClass>
<tile:ServiceClass name="HistorianService">
<tile:Content contentType="application/xml" uri="${catalogURL}/services/HistorianService/HistorianService-cafe-historian-services-imp l.gxml"/>
</tile:ServiceClass>
</tile:ServiceClassList>
</tile:ServiceLibrary>
</tile:ServiceLibraryList>
<!-- Specifies a list of style sheets (view:StylesheetClass elements) contained
within this catalog -->
<view:StylesheetClassList>
<!-- Remove the commenting from this view:StylesheetClass element to
include a style sheet reference in this catalog. Include a separate
view:StylesheetClass element for each style sheet you include in the
catalog. Within each view:StylesheetClass element, specify the style sheet
content using the following attributes of the view:Content child element:
uri: A reference, either to absolute or relative, to the content's
location on a server.
contentType: The MIME type for the style sheet content. For Flex
tiles, specify "application/x-shockwave-flash", and for HTML tiles
specify "text/css".
<view:StylesheetClass name="CafeMosaicTheme">
<ct:Metadata>
<ct:Description>An alternative way to navigate using a ComboBox.</ct:Description>
</ct:Metadata>
<view:Content contentType="application/x-shockwave-flash" uri="${catalogURL}/stylesheets/CafeMosaicTheme/CafeMosaicTheme.swf"/>
</view:StylesheetClass>
-->
</view:StylesheetClassList>
<!-- Specifies a list of panels (view:PanelClass elements) contained within
this catalog -->
<view:PanelClassList>
<!-- Remove the commenting from this view:PanelClass element to include
a reference to a panel in this catalog. Include a separate view:PanelClass
element for each panel you include in the catalog. Within a view:PanelClass
element, a view:Content child element specifies information for a panel
using a view:Panel child element. For each view:Panel child element,
specify the panel information using the following attributes:
name: A unique name for the panel used to reference it from within the
catalog.
label: Descriptive text that displays as the panel title in the user
interface of the composite application.
tileChrome: Sets the default user interface for the panel. Values may
be "none", "title" or "full". If the value is "full", then there is
chrome on the panel which displays the title (label) and allows the
panel to be moved, potentially deleted (if permitted), and resized.
If the value is "title", the chrome is the same as for "full" without
the ability to resize. If the value is "none", then there is no
chrome on the panel, which means no title (label), and no user
interface for for manipulating the panel.
allowContentDelete: Specifies whether users can delete this panel at
run time when the "chrome" attribute is set to "full" or "title".
Values may be "true" or "false".
Each view:Panel element may contain one or more tile:TileReference child
elements that specify tiles to display within the panel at run time. You
can override default tile attribute values here to customize the tile's
appearance when referenced within this panel:
catalog: Reference to the catalog that contains the tile.
name: The name of the tile specified in the catalog.
label: (override) The label of the tile.
chrome: (override) Sets the user interface for the tile. Values may
be "none", "title" or "full". If the value is "full", then there is
chrome on the tile, which displays the title (label) of panels
contained within the tile, and the tile allows for the panel to be
moved, potentially deleted (if permitted), and resized. If the value
is "title", the chrome is the same as for "full" without the ability
to resize. If the value is "none", then there is no chrome on the
tile, which means no panel title (label), and no user interface for
for manipulating the panel.
fitContent: (override) Specifies whether tile content should be
automatically resize to fit the container. Values may be "true" or
"false".
<view:PanelClass name="SamplePanel">
<ct:Metadata>
<ct:Description />
</ct:Metadata>
<view:Content>
<view:Panel name="SamplePanel" label="Sample Panel"
tileChrome="true" allowContentDelete="true" width="100%" height="100%">
<view:Layout name="HorizontalLayout" />
<tile:TileReference
catalog="${catalog}" name="SampleTile" label="Sample Tile" width="100%" height="50%"
chrome="full" fitContent="true"/>
</view:Panel>
</view:Content>
</view:PanelClass>
-->
</view:PanelClassList>
<!-- Specifies a list of views contained within this catalog -->
<view:ViewClassList>
<!-- Remove the commenting from this view:ViewClass element to include a
reference to a view in this catalog.
Include a separate view:ViewClass element for each view you include in the
catalog. Within a view:ViewClass element, a view:Content child element
specifies information for a panel using a view:View child element. For
each view:View child element, specify the panel information using the
following attributes:
name: A unique name for the view used to reference it from within
the catalog.
label: Descriptive text that displays as the panel title in the
user interface of the composite application.
Each view:View element may contain one or more view:PanelReference child
elements that specify panels to display within the view at run time. You
can override default panel attribute values here to customize the panel's
appearance when referenced within this view:
catalog: Reference to the catalog that contains the panel.
name: The name of the panel specified in the catalog.
<view:ViewClass label="Sample View" name="SampleView">
<ct:Metadata>
<ct:Description>Sample View</ct:Description>
</ct:Metadata>
<view:Content>
<view:View name="SampleView" width="100%" height="100%"
label="Sample View">
<catalog:CatalogReference name="Default"
uri="Default" />
<view:PanelReference catalog="Default" name="SamplePanel" />
</view:View>
</view:Content>
</view:ViewClass>
-->
</view:ViewClassList>
</catalog:Catalog>
SnapshotTile.mxml (snippet)
private var watcher:ChangeWatcher;
[Bindable]
[Consume(catalog="Historian", library="HistorianInterfaceLibrary")]
public var historianService:IHistorianService;
protected function _preinitializeHandler(event:FlexEvent):void
this.addEventListener( AnnotationParseEvent.COMPLETE, _annotationParseEventCompleteHandler );
watcher = ChangeWatcher.watch(this, "historianService", onGotService, false, true);
protected function onGotService(e:PropertyChangeEvent):void
if(historianService)
var test:ArrayCollection = historianService.getSnapshots("jonphill") as ArrayCollection;
trace("Using service, item 1: " + test.getItemAt(0));
trace("Using service, item 2: " + test.getItemAt(1));
I've also attached two screenshots showing the project structure in FB and CRX.
Any help here would be great as I'm pulling my hair out at this point!
Thanks
There's not an actual space in the error, it just looks that way when I pasted the text into the post.
For some additional information, I've tried going through the tutorial here (http://www.youtube.com/ADEPDevelopers#p/c/DF68F4464D4EF4E0/4/klNspQvfVMc) and here (http://help.adobe.com/en_US/enterpriseplatform/10.0/AEPDeveloperGuide/WS989a722fbb254cbe-6 f13dcd01304cbb1ac4-8000.html), however, neither one goes through the full steps of adding the Service to the axml and cxml files which is where I'm probably having trouble.
I've also looked at the StockMosaicService sample included with ADEP and tried mimicking it but with no luck. I had expected the ADEP tooling in Flash Builder to handle all this for me but it doesn't appear to be working properly now.
Similar Messages
-
Error calling a Web Service in CAF
Hi Experts
I have develop an CAF project and in this project i call some Enterprise Services. One of this ES is CapacityLoadPlanningViewByCapacityLoadPlanningViewQueryResponse_In.
I import this service in CAF Project from SCM system. Then i did a default mapping to an Application Service.
I generate, build and deploy the project. When i test this service i have this message error:
Caused by: com.sap.caf.rt.exception.CAFServiceException: Connection IO Exception. Check nested exception for details.
Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Parameter set failure. The runtime was not able to set some result parameter value. See nested exception for details
"failed to execute Operation query: String index out of range: 0"
In trabsaction SICF i can see the response xml of this service, and i see that one of returning attribute is empty and should be return some value because this attribute is required.
timeZoneCode and daylightSavingTimeIndicator
<ProductionPlanningOrderTotalCapacityLoad>
<ProductionPlanningOrderStartDateTime timeZoneCode="" daylightSavingTimeIndicator="">2010-01-12T16:48:13-02:00</ProductionPlanningOrderStartDateTime>
I try to change the xml schema to corretct this but nothing happend.
Cab someone help me about that issue?
Thanks and regards.
Marcos Brandao.Marcos,
This looks like the error message you have:
http://wiki.sdn.sap.com/wiki/display/JSTSG/%28NWA%29Problems-P050
Have you checked if this is related to a permission error?
Cheers. -
How to make use of asynchronous service in CAF development
Hello SDNs,
How can we make use of asynchronous service in CAF development;
Actually i am new to CAF development; my business requirement suites for the service provided by SAP. But the service provided is asynchronous; is it not possible to use the asynchronous service in my CAF application? if it is possible, can any one please tell me the drawbacks of using it!
You help would be highly appreciated.
Thanks,
Sireesha.BHi,
>> I have some portal service and how to use that in the web dynpro application.
Yes. U can use Portal service in webdynpro. Check the link given by subathra.
>> and also what is the main diff between Portal Component and web dynpro application
Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
>> do we required portal to run web dynpro application.
No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
Regards,
Vijai -
i updated to ios 5.1.1 and added icloud services. the problem is now whenever i connect my iphone to my PC, itunes does not recognize my phone. i need it to but it just does not connect..
Try the standard fixes to rule out a software problem:
- Reset. Nothing is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup
- Restore to factory defaults/new iPod.
If you still have the problem that points to a hardware problem. Yu can make an appointment at the the Genius Bar of an Apple store or try:
fix for Home button -
XI Message Protocol and Value-Added Web Services
Hi,
I have a couple of questions on the above-mentioned topic:
- How is the enhanced SOAP format in XI able to deliver value-added web services (as described in the XI documentation)?
- If the XI format is an enhancement of SOAP, is it again fully open or are there some proprietary pieces to it?
Thanks and Regards,
BharathHi Bharath,
>>> How is the enhanced SOAP format in XI able to deliver value-added web services (as described in the XI documentation)?
value-added web services means that you can monitor
all web services from one place (with the xi monitoring features)
if you're using point-to-point connections without the XI
you have to monitor all of your flows from all those applications and not from just one place
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a> -
ESA service in CAF : Exception
I have implemented an ESA service in CAF which has an Application Service with 5 operations.
All the 5 operations have been tested successfully with the Test UI of CAF.
Each operation of the Application has also been exposed as a webservice.
2 webservices already work fine and give proper output when tested using wsnavigator.
However When I test the 3rd wsdl using wsnavigator I get an exception as follows
com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in method readDisb_R.
at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanObjectImpl0.readDisb_R(disburseLoanObjectImpl0.java:310)
at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoan_Stub.readDisb_R(disburseLoan_Stub.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
at $Proxy172.readDisb_R(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.ClassCastException
at com.sap.is.cmp.loan.disbursementbl.appsrv.datatypes.loanDisbReqRead_R.fromLocalInstance(loanDisbReqRead_R.java:259)
at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanBean.readDisb_R(disburseLoanBean.java:229)
at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanObjectImpl0.readDisb_R(disburseLoanObjectImpl0.java:259)
... 32 more
; nested exception is:
java.lang.ClassCastException
I have tried to debug the service when testing on wsnavigator and have found no propblems in the operation that has been implemented.
The errors are generated when the output is sent to the client.
Hope somebody knows and shares how to get the desired output. Any information on the exception will be useful.
Thanks and Regards,
MadhusudhanHi Madusudhan,
You have a ClassCastException at line no. 259
Caused by: java.lang.ClassCastException
at com.sap.is.cmp.loan.disbursementbl.appsrv.datatypes.loanDisbReqRead_R.fromLocalInstance(loanDisbReqRead_R.java:259)
What is the code at this line ? Please check if you have taken care of the casting properly.
Regards,
Anish -
Consuming ES Workplace Web Services in CAF - ReadCustomer Example
Hi,
I am trying out the steps from [Consuming ES Workplace Web Services in CAF|http://help.sap.com/saphelp_nw72/helpdata/en/6d/00932cf834471789ad286986185acb/content.htm]
Completed steps 1 through 5 successfully. For step 6 I am unable to locate the options and I guess I missed something here.
When I am testing the development I get the error Service Mapping is missing.
More Error info: com.sap.caf.rt.connectivity.exception.CAFWSExecException: The Service mapping is missing.
Please let me know if I am missing something here or the configuration I might be missing in step 6.
Environment:
SDN_Preview_SR_5_CE71.rar
SDN_Preview_SR_5_IDECE71.rar
Thanks,solved.
-
Encapsulating web services in CAF core
Hi,
I am trying to call external services namely web services in caf core. I read the earlier posts and i guess I am missing out on something.
1. what is the difference between encapsulating external service as entity service VS application service. For example, I am trying to call the PurchaseOrderVendorAddress_WSD webservice. It takes vendorID and purchaseorderID as input and returns vendor address. What should I use and why?
2. I checked out CAF core tutorial. It talks about encapsulating RFC as application service. Is it same for web service? I mean can I assume the same approach is valid for web service
Many thnx,
Mayukhdid you follow the tutorial "81 Using a Web Service as External Service (Service)"?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370
you can't be lost after that. otherwise you're in big trouble my friend... -
I am currently in Cameroon, Africa and after arriving here, I added Global services to my plan in hopes to be able to use my phone to call local numbers. When I dial local numbers in Cameroon, with or without the country code, the call fails. I suspect it may be that the phone is 3G and this area only supports 2G. Help!
cctga,
We appreciate you taking the time to reach out to us. I am sorry to hear that you are having trouble while traveling. We definitely want to make sure you have all available options. Normally when traveling internationally we reccommend setting up international services prior to leaving. When you added the services did you do so online or with a rep? It would be best to contact our global department in order to troubleshoot any and all issues with services while international http://vz.to/17KseUf.
Thank you,
TonyG_VZW
Follow us on Twitter @VZWSupport -
Tns-04406 tns-04409 error during adding net service in oracle10g OID
Hi,
We have installed oracle OID using oracle app server 10 and are in process of configuring directory naming method
ldap.ora file has foll entries
# ldap.ora Network Configuration File: /app/oracle/product/101202/network/admin/ldap.ora
# Generated by Oracle configuration tools.
DIRECTORY_SERVERS= (smtest02:389:636)
DEFAULT_ADMIN_CONTEXT = ""
DIRECTORY_SERVER_TYPE = OID
getting following error during adding net service names ... is this a setup issue ?
error writing ServiceAlias to: LDAPDataStore [svr: smtest02:389:636, type: OID, ctxt: cn=OracleContext,, home: /app/oracle/product/101202] original exception message: TNS-04409: Directory service error caused by: oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException original stack trace: oracle.net.config.ServiceAliasException: TNS-04409: Directory service error caused by: oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException oracle.net.config.DirectoryServiceException: TNS-04406: Invalid parameter caused by: oracle.net.ldap.NNFLException oracle.net.ldap.NNFLException at oracle.net.config.DirectoryService.throwException(Unknown Source) at oracle.net.config.DirectoryService.read(Unknown Source) at oracle.net.config.ServiceAlias.<init>(Unknown Source) at oracle.net.common.dataStore.LDAPNetServiceHandler.save(Unknown Source) at oracle.net.common.dataStore.NetObjectHandler.maybeCommit(Unknown Source) at oracle.net.common.dataStore.NetObjectHandler.addElement(Unknown Source) at oracle.sysman.emo.net.config.srvc.Services.writeLDAPEntry(Services.java:1120) at oracle.sysman.emo.net.config.srvc.Services.saveService(Services.java:1072) at oracle.sysman.emo.net.config.srvc.NetServiceAdminObject.commit(NetServiceAdminObject.java:505) at oracle.sysman.db.net.NetController.applyAdminObjectBean(NetController.java:449) at oracle.sysman.db.net.NetController.onApply(NetController.java:499) at oracle.sysman.db.net.srvc.NetServiceController.onApply(NetServiceController.java:1401) at oracle.sysman.db.net.NetController.handleApply(NetController.java:843) at oracle.sysman.db.net.srvc.NetServiceController.handleApply(NetServiceController.java:1412) at oracle.sysman.db.net.NetController.handleEvent(NetController.java:1036) at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:376) at oracle.sysman.db.net.NetControllerResolver.handleRequest(NetControllerResolver.java:169) at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688) at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291) at oracle.sysman.eml.app.Console.doGet(Console.java:285) at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:133) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
thanks
KedarResolved this issue by logging in as super user.
-
Consuming WS-RM enabled service in CAF
Hi All,
When i imported a WS-RM enabled service in a CAF project i can see in the design time that the operation is still showing that WS-RM is still not enabled. Is it possible to consume a WS-RM enabled service into CAF? If yes, Please suggest some way to do.
Thanks & Regards,
RohitHi Rohit,
You cannot configure reliable messaging for Web services you have imported in your composite application. You can only find out which of the operation of the external service support reliable messaging in the Operations tab of the external service editor.
To check whether any of the operations of the service you have imported supports idempotency or reliable messaging, open the Operations tab page and check the Idempotency and WS-RM columns in the Existing Operations table.
Regards,
Naresh -
Access Enterprise Service as CAF External Service
Hi All,
Has anybody used Enterprise Service as CAF External service (in CE 7.1.1) and got the proper result after doing the external service config.? If any body used it please share the External service config part. Because I am getting stuck here. In CE7.1.1 the external service config is not same like previous version as I think.
Thanks in Advance
ChandanHi Chandan,
For Ehp1 you can take a look at:
[Configuring Consumer Applications|http://help.sap.com/saphelp_nwce711/helpdata/en/a1/9e09c81efa4b2ba92de3f465e305f3/frameset.htm]
[Configuring Individual Web Service Clients|http://help.sap.com/saphelp_nwce711/helpdata/en/47/f8af96fdb84aa7e10000000a421937/content.htm]
[Configuring Groups of Web Service Clients|http://help.sap.com/saphelp_nwce711/helpdata/en/9e/bddebc278e41e4988fe064d694b20c/content.htm]
Hope this helps.
Best Regards,
Tsvetan -
Expose the Entity Service in CAF as Web Service
Hello,
How can I expose the created Entity Services in CAF (for example xPerson) as a Web Service, for be used in other applications?
ThanksHi,
These will actually get saved in your internal SAP database. This is nothing but a MaxDB database which will be installed along with your CE. All your business objects will be saved in this in the server.
Regards,
Srinivasan Subbiah -
Adding web services to C# application
Hello,
having on mind that I use SQL Server 2008 R2, could somebody help me to perform adding WEB Services as described bellow:
1
ReportServer2005: Namespace: Microsoft.SqlServer.ReportingServices.ReportService2005 URL:
http://servername/ReportServerName/ReportService2005.asmx?wsdl Declaration: ReportingService2005 rs = new ReportingService2005();
2
ReportExecution2005: Namespace: Microsoft.SqlServer.ReportingServices.ReportExecutionService URL:
http://servername/ReportServerName/ReportExecution2005.asmx?wsdl Declaration: ReportExecutionService rsExec = new ReportExecutionService();
I guess that "servername" and "ReportServerName" are those from my local Report Server (i.e., MyLocalComputerName and MyLocalReportServerName).
Purpose of this is to programmatically
perform export of SSRS report to PDF, based on parameter's array.
Thanks!help me to perform adding WEB Services as described bellow:
Hello,
It depends a Little bit on the used Visual Studio Version. Basically do a right-mouse click on "References" and select
The next steps are a Little bit hidden & confusing: In the next Dialog click on "Advanced..", then add "Web reference" and here you can enter the URL for SSRS SOAP, click on the green arrow and the WSDL data will be retrieved &
shown in the Dialog:
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Modify journalentry when adding a service A/R Invoice
We are facing the following problem. When we add a service A/R Invoice (by di), the following journalentry is created:
Debit: Debtor account
Credit: Tax and revenue account
This is ok but we also want to add the following lines:
Debit: Costprice account
Credit: Stock account
I don't know how to change the invoice so that this two lines will be added automaticly. So I tried to modify the created journal entry after i added the Invoice.
I can get the journalentry (journalEntry.GetByKey) but i'm not able to add lines. I got the error
"This entry already exists in the following tables (ODBC -2035)"
Can anyone help me with this. I know how to add a jounalentry seperatly but i would like to see it linked to the Invoice.
Thanks,
ErikHi Erik,
i think you can't add lines when your JournalEntry was added.
i create always a 2nd one:
i did it always so that i used one of the Reference Fields and/or
an UDF to link the 2nd created Journal Entry to the document.
than you know that they belong together.
lg David
Maybe you are looking for
-
Finger Command Not Working (Fresh Install)
I just did a fresh http/ftp install and noticed that I am unable to "finger" a user I tried to 'pacman -S finger' however it appears that package does not exist. Anyone know what this depends on? Last edited by Carlwill (2008-10-20 18:10:07)
-
Subsinvprocess in the sales order header --- billing tab and in the custom
Hello All there is a field SubsInvProcess in sales order header - billing- tab and in the customer master - billing tab what was the functionality of this field. I never worked with it kindly help on this one. Thanks, prasad
-
Windows Server 2008 R2 - Windows Error STOP 0X000000D1 usbuhci.sys.sys
Hi everybody, Since we had this error happening a couple of time in the few months. I was wondering how to resolve this issue. This issue is happening for no apparent reason and on a threads writen on Microsoft it says it occur when you plug a USB
-
Hello everybody, i have set up the JDI and everything went quite well. Now when i have checked in my changes i have made via the NWDS and want them to activate i get an error at the Actication Requests view. Unfornunately there is no Activation log.
-
Good old G5 going belly-up?
Hi, my Dual 2.5GHz G5 (late 2004) has developed a bit of a problem lately. When looking at photos in Preview or watching DVDs, the computer stalls, I sometimes get the SBBOD, sometimes I don't, sometimes I can force quit the application and sometimes