<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>ServiceBuilder and Soap</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=16706437" />
  <subtitle>ServiceBuilder and Soap</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=16706437</id>
  <updated>2026-04-06T20:13:36Z</updated>
  <dc:date>2026-04-06T20:13:36Z</dc:date>
  <entry>
    <title>RE: ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16734710" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16734710</id>
    <updated>2012-09-27T12:52:47Z</updated>
    <published>2012-09-27T12:52:47Z</published>
    <summary type="html">It&amp;#39;s not a bug. Should have posted to a new feature request forum instead of creating an issue.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2012-09-27T12:52:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16730086" />
    <author>
      <name>Dmitry Fengoff</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16730086</id>
    <updated>2012-09-27T09:41:00Z</updated>
    <published>2012-09-27T09:41:00Z</published>
    <summary type="html">I think it&amp;#39;s a bug. I created issue http://issues.liferay.com/browse/LPS-30190&lt;br /&gt;And I did &amp;#34;pull request&amp;#34;.</summary>
    <dc:creator>Dmitry Fengoff</dc:creator>
    <dc:date>2012-09-27T09:41:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16708795" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16708795</id>
    <updated>2012-09-26T15:40:58Z</updated>
    <published>2012-09-26T15:40:58Z</published>
    <summary type="html">Certainly.  Any method that you add to XxxServiceImpl will result in the soap wrapper and the corresponding soap conversion in XxxServiceSoap.&lt;br /&gt;&lt;br /&gt;This is again the magic of using Service Builder...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2012-09-26T15:40:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16708518" />
    <author>
      <name>Dmitry Fengoff</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16708518</id>
    <updated>2012-09-26T15:24:34Z</updated>
    <published>2012-09-26T15:24:34Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;For example in UserServiceSoap there is Soap conversion:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
	public static com.liferay.portal.model.UserSoap getUserByEmailAddress(
		long companyId, java.lang.String emailAddress)
		throws RemoteException {
		try {
			com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByEmailAddress(companyId,
					emailAddress);

			return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
		}
		catch (Exception e) {
			_log.error(e, e);

			throw new RemoteException(e.getMessage());
		}
	}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Is it doing that automatically?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Dmitry Fengoff</dc:creator>
    <dc:date>2012-09-26T15:24:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16706730" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16706730</id>
    <updated>2012-09-26T14:20:58Z</updated>
    <published>2012-09-26T14:20:58Z</published>
    <summary type="html">I believe the soap translation is to be automatic, in that you make the call in your client code and the framework ensures it is correctly translated to the soap form when it is returned...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2012-09-26T14:20:58Z</dc:date>
  </entry>
  <entry>
    <title>ServiceBuilder and Soap</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16706436" />
    <author>
      <name>Dmitry Fengoff</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16706436</id>
    <updated>2012-09-26T13:59:00Z</updated>
    <published>2012-09-26T13:59:00Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I created service. Basically I want to use it as decorator. I created method: &lt;br&gt;&lt;pre&gt;&lt;code&gt;
public DLFolder getFolder(long groupId, long parentFolderId, String name) throws PortalException, SystemException {
		return DLFolderServiceUtil.getFolder(groupId, parentFolderId, name);
}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;when i exec "build-service" task it generates method in *Soap.class:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
		long groupId, long parentFolderId, java.lang.String name)
		throws RemoteException {
		try {
			com.liferay.portlet.documentlibrary.model.DLFolder returnValue = FCWebApiServiceUtil.getFolder(groupId,
					parentFolderId, name);

			return returnValue;
		}
		catch (Exception e) {
			_log.error(e, e);

			throw new RemoteException(e.getMessage());
		}
	}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But I need something like this:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
public static DLFolderSoap getFolder(
		long groupId, long parentFolderId, java.lang.String name)
		throws RemoteException {
		try {
			com.liferay.portlet.documentlibrary.model.DLFolder returnValue = FCWebApiServiceUtil.getFolder(groupId,
					parentFolderId, name);

			return DLFolderSoap.toSoapModel(returnValue);
		}
		catch (Exception e) {
			_log.error(e, e);

			throw new RemoteException(e.getMessage());
		}
	}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;So, if I change all returns to "toSoapModel" it'll changed back when I exec "build-service" again. How i can solve it? Do i need change template in service builder sources?&lt;br&gt;&lt;br&gt;I use Liferay 6.1 ce&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Dmitry Fengoff</dc:creator>
    <dc:date>2012-09-26T13:59:00Z</dc:date>
  </entry>
</feed>
